diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-02-17 08:05:08 +0000 |
|---|---|---|
| committer | John Smith <removethis.john.q.public@bigmail.com> | 2012-02-17 08:05:08 +0000 |
| commit | afb80368d6bf4dc2a55b011c9a14fa4288d2fe84 (patch) | |
| tree | 6ec54c830a6537271186388726542ca873ff7830 /src/dialogs/find.cpp | |
| parent | Documentation of the Text and Font dialog (diff) | |
| download | inkscape-afb80368d6bf4dc2a55b011c9a14fa4288d2fe84.tar.gz inkscape-afb80368d6bf4dc2a55b011c9a14fa4288d2fe84.zip | |
Fix for 171579 : Make inkscape remember dialogs window status
(bzr r10992)
Diffstat (limited to 'src/dialogs/find.cpp')
| -rw-r--r-- | src/dialogs/find.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dialogs/find.cpp b/src/dialogs/find.cpp index 7219c910e..b96284209 100644 --- a/src/dialogs/find.cpp +++ b/src/dialogs/find.cpp @@ -77,6 +77,9 @@ static Glib::ustring const prefs_path = "/dialogs/find/"; static void sp_find_dialog_destroy(GtkObject *object, gpointer) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setInt(prefs_path + "visible", 0); + sp_signal_disconnect_by_data (INKSCAPE, object); wd.win = dlg = NULL; wd.stop = 0; @@ -661,6 +664,8 @@ sp_find_dialog_old (void) h = prefs->getInt(prefs_path + "h", 0); } + prefs->setInt(prefs_path + "visible", 1); + // if (x<0) x=0; // if (y<0) y=0; |
