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:
@@ -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 ();
|
||||
|
Reference in New Issue
Block a user