]> git.lyx.org Git - features.git/commitdiff
make dialog stay above the main window
authorAndré Pönitz <poenitz@gmx.net>
Mon, 26 Nov 2007 23:42:51 +0000 (23:42 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 26 Nov 2007 23:42:51 +0000 (23:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21809 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDialog.cpp

index 36632935ab7138e1b05ee6d4a2f430e9eba237e7..5034373cce484f218f9deb02d18178dc7d0b2fee 100644 (file)
 #include <config.h>
 
 #include "GuiDialog.h"
+#include "GuiView.h"
 #include "debug.h"
 #include "qt_helpers.h"
 
 #include <QCloseEvent>
+#include <QMainWindow>
 #include <QSettings>
 #include <QShowEvent>
 
@@ -24,7 +26,7 @@ namespace lyx {
 namespace frontend {
 
 GuiDialog::GuiDialog(GuiView & lv, std::string const & name)
-       : Dialog(lv, name), is_closing_(false)
+       : QDialog(&lv), Dialog(lv, name), is_closing_(false)
 {}