Fix issue #3532 + a memory leak
This commit is contained in:
parent
c90b701999
commit
95f0d67dfe
@ -1639,8 +1639,7 @@ void EditorPanel::saveAsPressed ()
|
|||||||
fnameOut = saveAsDialog->getFileName ();
|
fnameOut = saveAsDialog->getFileName ();
|
||||||
|
|
||||||
options.lastSaveAsPath = saveAsDialog->getDirectory ();
|
options.lastSaveAsPath = saveAsDialog->getDirectory ();
|
||||||
options.saveAsDialogWidth = saveAsDialog->get_width ();
|
saveAsDialog->get_size(options.saveAsDialogWidth, options.saveAsDialogHeight);
|
||||||
options.saveAsDialogHeight = saveAsDialog->get_height ();
|
|
||||||
options.autoSuffix = saveAsDialog->getAutoSuffix ();
|
options.autoSuffix = saveAsDialog->getAutoSuffix ();
|
||||||
options.saveMethodNum = saveAsDialog->getSaveMethodNum ();
|
options.saveMethodNum = saveAsDialog->getSaveMethodNum ();
|
||||||
lastSaveAsFileName = Glib::path_get_basename (removeExtension (fnameOut));
|
lastSaveAsFileName = Glib::path_get_basename (removeExtension (fnameOut));
|
||||||
@ -1709,6 +1708,8 @@ void EditorPanel::saveAsPressed ()
|
|||||||
} while (!fnameOK);
|
} while (!fnameOK);
|
||||||
|
|
||||||
saveAsDialog->hide();
|
saveAsDialog->hide();
|
||||||
|
|
||||||
|
delete saveAsDialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorPanel::queueImgPressed ()
|
void EditorPanel::queueImgPressed ()
|
||||||
|
@ -105,8 +105,7 @@ Preferences::~Preferences ()
|
|||||||
{
|
{
|
||||||
|
|
||||||
profileStore.removeListener(this);
|
profileStore.removeListener(this);
|
||||||
options.preferencesWidth = get_width();
|
get_size(options.preferencesWidth, options.preferencesHeight);
|
||||||
options.preferencesHeight = get_height();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Gtk::Widget* Preferences::getBatchProcPanel ()
|
Gtk::Widget* Preferences::getBatchProcPanel ()
|
||||||
|
@ -690,8 +690,7 @@ bool RTWindow::on_delete_event(GdkEventAny* event)
|
|||||||
ProfilePanel::cleanup();
|
ProfilePanel::cleanup();
|
||||||
|
|
||||||
if (!options.windowMaximized) {
|
if (!options.windowMaximized) {
|
||||||
options.windowWidth = get_width();
|
get_size(options.windowWidth, options.windowHeight);
|
||||||
options.windowHeight = get_height();
|
|
||||||
get_position (options.windowX, options.windowY);
|
get_position (options.windowX, options.windowY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user