diff --git a/include/Editor.h b/include/Editor.h index 2141717af58..9cabc21666d 100644 --- a/include/Editor.h +++ b/include/Editor.h @@ -57,6 +57,7 @@ class Editor : public QMainWindow DropToolBar * addDropToolBar(Qt::ToolBarArea whereToAdd, QString const & windowTitle); DropToolBar * addDropToolBar(QWidget * parent, Qt::ToolBarArea whereToAdd, QString const & windowTitle); + void closeEvent(QCloseEvent* event) override; void keyPressEvent(QKeyEvent* ke) override; public slots: diff --git a/src/gui/editors/Editor.cpp b/src/gui/editors/Editor.cpp index 92c778cd275..0e00f0ed08e 100644 --- a/src/gui/editors/Editor.cpp +++ b/src/gui/editors/Editor.cpp @@ -139,6 +139,11 @@ QAction *Editor::playAction() const return m_playAction; } +void Editor::closeEvent(QCloseEvent* event) +{ + event->ignore(); +} + void Editor::keyPressEvent(QKeyEvent* ke) { if (ke->key() == Qt::Key_Space)