]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDialog.cpp
Do not show master's errors if compiling child
[lyx.git] / src / frontends / qt4 / GuiDialog.cpp
index e20c3bc66e45652efdc5a9bd87f4a2dafb5cfffb..2f57dc82800260144eaad9789e29af0cd0e5680b 100644 (file)
@@ -15,6 +15,8 @@
 #include "GuiView.h"
 #include "qt_helpers.h"
 
+#include "support/debug.h"
+
 #include <QCloseEvent>
 
 using namespace std;
@@ -23,9 +25,15 @@ namespace lyx {
 namespace frontend {
 
 GuiDialog::GuiDialog(GuiView & lv, QString const & name, QString const & title)
-       : QDialog(&lv), Dialog(lv, name, "LyX: " + title), updating_(false), 
+       : QDialog(&lv), Dialog(lv, name, "LyX: " + title), updating_(false),
          is_closing_(false)
-{}
+{
+       connect(&lv, SIGNAL(bufferViewChanged()),
+               this, SLOT(onBufferViewChanged()));
+
+       // remove question marks from Windows dialogs
+       setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
+}
 
 
 void GuiDialog::closeEvent(QCloseEvent * ev)