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
This commit is contained in:
Abdelrazak Younes 2008-06-09 16:11:47 +00:00
parent efd40b2673
commit fe9de1f1d6

View File

@ -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();