small fixes related to file saves, filenames when invoking new album
authorgc <gc>
Fri, 29 Jul 2005 20:52:24 +0000 (20:52 +0000)
committergc <gc>
Fri, 29 Jul 2005 20:52:24 +0000 (20:52 +0000)
bin/booh

index a4357baf88d39d312df391d0f696e5f375443799..e2488f238907116576d0f1d6be1777aa8b49daee 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -2168,6 +2168,11 @@ def additional_booh_options
 end
 
 def new_album
 end
 
 def new_album
+    if !ask_save_modifications(utf8(_("Save this album?")),
+                               utf8(_("Do you want to save the changes to this album?")),
+                               { :yes => Gtk::Stock::YES, :no => Gtk::Stock::NO })
+        return
+    end
     dialog = Gtk::Dialog.new(utf8(_("Create a new album")),
                              $main_window,
                              Gtk::Dialog::MODAL | Gtk::Dialog::DESTROY_WITH_PARENT,
     dialog = Gtk::Dialog.new(utf8(_("Create a new album")),
                              $main_window,
                              Gtk::Dialog::MODAL | Gtk::Dialog::DESTROY_WITH_PARENT,
@@ -2402,7 +2407,7 @@ def new_album
                      "#{opt432 ? '--optimize-for-32' : ''} #{additional_booh_options}",
                      utf8(_("Please wait while scanning source directory...")),
                      'full scan',
                      "#{opt432 ? '--optimize-for-32' : ''} #{additional_booh_options}",
                      utf8(_("Please wait while scanning source directory...")),
                      'full scan',
-                     { :closure_after => proc { open_file(configskel) } })
+                     { :closure_after => proc { open_file_user(configskel) } })
     end
 end
 
     end
 end