From fe9de1f1d6a1787aaadf3b3dcdde56c2c68503df Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 9 Jun 2008 16:11:47 +0000 Subject: [PATCH] potential fix to outline drawer when leaving full-screen mode. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25217 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiToc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiToc.cpp b/src/frontends/qt4/GuiToc.cpp index 268f373313..4a261bb4a1 100644 --- a/src/frontends/qt4/GuiToc.cpp +++ b/src/frontends/qt4/GuiToc.cpp @@ -58,9 +58,10 @@ void GuiToc::updateView() setWindowFlags(Qt::Widget); setFeatures(DockWidgetClosable); show(); - } else if (windowFlags() & Qt::Widget && !lyxview().isFullScreen()) { + } else if (!(windowFlags() & Qt::Drawer)) { setWindowFlags(Qt::Drawer); setFeatures(NoDockWidgetFeatures); + // Setting features hides the dialog, see Qt's doc. show(); } widget_->updateView();