Code

Remove redundant dialog present(), make sure user_hidden is set for
authorgustav_b <gustav_b@users.sourceforge.net>
Mon, 10 Sep 2007 17:40:26 +0000 (17:40 +0000)
committergustav_b <gustav_b@users.sourceforge.net>
Mon, 10 Sep 2007 17:40:26 +0000 (17:40 +0000)
DockBehavior dialogs.

src/ui/dialog/dialog.cpp
src/ui/dialog/dock-behavior.cpp

index a0557827cc200220ecc6ddaf22b44680744b308e..fe1a43e22784d78360c76d8cdfb95d5f84b7c7f4 100644 (file)
@@ -227,7 +227,6 @@ Dialog::Dialog(Behavior::BehaviorFactory behavior_factory, const char *prefs_pat
     }
 
     read_geometry();
-    present();
 }
 
 Dialog::~Dialog()
index 5f600db46b8b49e693a3415b9c271a0d5ad8b705..ad9b19a56b86385f20e11ccb8c3c3ebbf37a72bb 100644 (file)
@@ -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());
 }