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