summaryrefslogtreecommitdiffstats
path: root/src/dialogs/export.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-02-17 08:05:08 +0000
committerJohn Smith <removethis.john.q.public@bigmail.com>2012-02-17 08:05:08 +0000
commitafb80368d6bf4dc2a55b011c9a14fa4288d2fe84 (patch)
tree6ec54c830a6537271186388726542ca873ff7830 /src/dialogs/export.cpp
parentDocumentation of the Text and Font dialog (diff)
downloadinkscape-afb80368d6bf4dc2a55b011c9a14fa4288d2fe84.tar.gz
inkscape-afb80368d6bf4dc2a55b011c9a14fa4288d2fe84.zip
Fix for 171579 : Make inkscape remember dialogs window status
(bzr r10992)
Diffstat (limited to 'src/dialogs/export.cpp')
-rw-r--r--src/dialogs/export.cpp5
1 files changed, 5 insertions, 0 deletions
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;