From afb80368d6bf4dc2a55b011c9a14fa4288d2fe84 Mon Sep 17 00:00:00 2001 From: John Smith Date: Fri, 17 Feb 2012 17:05:08 +0900 Subject: Fix for 171579 : Make inkscape remember dialogs window status (bzr r10992) --- src/dialogs/export.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/dialogs/export.cpp') diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp index 85149ccaa..706ece066 100644 --- a/src/dialogs/export.cpp +++ b/src/dialogs/export.cpp @@ -156,6 +156,9 @@ static const char * selection_labels[SELECTION_NUMBER_OF] = { static void sp_export_dialog_destroy ( GtkObject */*object*/, gpointer /*data*/ ) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setInt(prefs_path + "visible", 0); + sp_signal_disconnect_by_data (INKSCAPE, dlg); wd.win = dlg = NULL; @@ -422,6 +425,8 @@ sp_export_dialog (void) h = prefs->getInt(prefs_path + "h", 0); } + prefs->setInt(prefs_path + "visible", 1); + // if (x<0) x=0; // if (y<0) y=0; -- cgit v1.2.3