Fixed problem when cancelling SaveAs dialog

see issue 1397
This commit is contained in:
Oliver Duis
2012-06-14 17:31:08 +02:00
parent f40bc8e39a
commit 8c3347cd87

View File

@@ -1021,7 +1021,7 @@ void EditorPanel::saveAsPressed () {
saveAsDialog->setInitialFileName (removeExtension (Glib::path_get_basename (openThm->getFileName())));
do {
saveAsDialog->run ();
if (saveAsDialog->getResponse()==Gtk::RESPONSE_CANCEL)
if (saveAsDialog->getResponse()!=Gtk::RESPONSE_OK)
return;
// The SaveAsDialog ensure that a filename has been specified