]> git.lyx.org Git - lyx.git/commitdiff
fix outline dialog for non-Mac platform.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 9 Sep 2007 20:51:04 +0000 (20:51 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 9 Sep 2007 20:51:04 +0000 (20:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20178 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Dialogs.cpp

index be51c854755ac8f6964195dc62e63cafc4874c42..d26f9b7fc3308f750232fc29fe0c443579dfd683 100644 (file)
@@ -194,9 +194,13 @@ Dialog * Dialogs::build(string const & name)
                dialog = new GuiThesaurusDialog(lyxview_);
 #endif
        } else if (name == "toc") {
+#ifdef Q_WS_MACX
                // On Mac show as a drawer at the right
-               dialog = new DockView<GuiToc, TocWidget>(
-                       guiview, name, Qt::RightDockWidgetArea, Qt::Drawer);
+               dialog = new DockView<GuiToc, TocWidget>(guiview, name,
+                       Qt::RightDockWidgetArea, Qt::Drawer);
+#else
+               dialog = new DockView<GuiToc, TocWidget>(guiview, name);
+#endif
        } else if (name == "url") {
                dialog = new GuiURLDialog(lyxview_);
        } else if (name == "vspace") {