From: gustav_b Date: Mon, 10 Sep 2007 17:40:26 +0000 (+0000) Subject: Remove redundant dialog present(), make sure user_hidden is set for X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=417eb5cc8fec7a30f77af424c4fa82dcf591c8ff;p=inkscape.git Remove redundant dialog present(), make sure user_hidden is set for DockBehavior dialogs. --- diff --git a/src/ui/dialog/dialog.cpp b/src/ui/dialog/dialog.cpp index a0557827c..fe1a43e22 100644 --- a/src/ui/dialog/dialog.cpp +++ b/src/ui/dialog/dialog.cpp @@ -227,7 +227,6 @@ Dialog::Dialog(Behavior::BehaviorFactory behavior_factory, const char *prefs_pat } read_geometry(); - present(); } Dialog::~Dialog() diff --git a/src/ui/dialog/dock-behavior.cpp b/src/ui/dialog/dock-behavior.cpp index 5f600db46..ad9b19a56 100644 --- a/src/ui/dialog/dock-behavior.cpp +++ b/src/ui/dialog/dock-behavior.cpp @@ -232,6 +232,7 @@ void DockBehavior::_onHide() { _dialog.save_geometry(); + _dialog._user_hidden = true; prefs_set_int_attribute (_dialog._prefs_path, "state", _dock_item.getPrevState()); }