From 417eb5cc8fec7a30f77af424c4fa82dcf591c8ff Mon Sep 17 00:00:00 2001 From: gustav_b Date: Mon, 10 Sep 2007 17:40:26 +0000 Subject: [PATCH] Remove redundant dialog present(), make sure user_hidden is set for DockBehavior dialogs. --- src/ui/dialog/dialog.cpp | 1 - src/ui/dialog/dock-behavior.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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()); } -- 2.30.2