]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/DialogView.h
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / DialogView.h
index 47a018fd3312adc642928ba4a3a3f3df593237b5..d3125c6f8e94298e00e78d9898fada42b4a76114 100644 (file)
@@ -29,7 +29,7 @@ public:
        /// container.
        /// \param title is the window title used for decoration.
        DialogView(GuiView & lv, QString const & name, QString const & title)
-               : Dialog(lv, name, "LyX: " + title)
+               : QDialog(&lv), Dialog(lv, name, "LyX: " + title)
        {}
 
        virtual QWidget * asQWidget() { return this; }
@@ -41,6 +41,7 @@ protected:
        void applyView() {}
        bool initialiseParams(std::string const & /*data*/) { return true; }
        void clearParams() {}
+       bool needBufferOpen() const { return isBufferDependent(); }
        //@}
        /// Any dialog that overrides this method should make sure to call it.
        void closeEvent(QCloseEvent * ev)