The "SaveAs" feature was saving the image even if the filename field was leaved empty, because it was automatically adding the format suffix.

The SaveAsDialog is now most secured too: no empty filename field is allowed when pressing OK.
This commit is contained in:
Hombre
2011-08-09 23:24:14 +02:00
parent aac3be6386
commit 613f8308a3
3 changed files with 24 additions and 3 deletions

View File

@@ -37,6 +37,7 @@ class SaveAsDialog : public Gtk::Dialog, public FormatChangeListener {
Gtk::RadioButton* immediately;
Gtk::RadioButton* putToQueueHead;
Gtk::RadioButton* putToQueueTail;
Gtk::ResponseType response;
public:
SaveAsDialog (Glib::ustring initialDir);
@@ -50,6 +51,7 @@ class SaveAsDialog : public Gtk::Dialog, public FormatChangeListener {
bool getToTailOfQueue ();
void setInitialFileName (Glib::ustring iname);
Gtk::ResponseType getResponse () { return response; };
void okPressed ();
void cancelPressed ();