]> git.lyx.org Git - features.git/commitdiff
Maybe fix http://bugzilla.lyx.org/show_bug.cgi?id=4939
authorAbdelrazak Younes <younes@lyx.org>
Mon, 9 Jun 2008 22:25:51 +0000 (22:25 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 9 Jun 2008 22:25:51 +0000 (22:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25218 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToc.cpp

index 4a261bb4a12db44c745420f312aa6fbf8c26059e..24d072081bf57fd54f6475146f022f353a19f029 100644 (file)
@@ -53,10 +53,12 @@ void GuiToc::updateView()
                return;
 #endif
 
+       widget_->updateView();
        // Special code for Mac drawer.
        if (windowFlags() & Qt::Drawer && lyxview().isFullScreen()) {
                setWindowFlags(Qt::Widget);
                setFeatures(DockWidgetClosable);
+               // Setting features hides the dialog, see Qt's doc.
                show();
        } else if (!(windowFlags() & Qt::Drawer)) {
                setWindowFlags(Qt::Drawer);
@@ -64,7 +66,6 @@ void GuiToc::updateView()
                // Setting features hides the dialog, see Qt's doc.
                show();
        }
-       widget_->updateView();
 }