diff --git a/src/skeletondocument.cpp b/src/skeletondocument.cpp index fe1241fe..64980491 100644 --- a/src/skeletondocument.cpp +++ b/src/skeletondocument.cpp @@ -16,7 +16,8 @@ SkeletonDocument::SkeletonDocument() : m_resultMeshIsObsolete(false), m_resultMesh(nullptr), m_meshGenerator(nullptr), - m_batchChangeRefCount(0) + m_batchChangeRefCount(0), + editMode(SkeletonDocumentEditMode::Select) { } diff --git a/src/skeletondocumentwindow.cpp b/src/skeletondocumentwindow.cpp index b389ce8a..518b1147 100644 --- a/src/skeletondocumentwindow.cpp +++ b/src/skeletondocumentwindow.cpp @@ -534,6 +534,11 @@ void SkeletonDocumentWindow::showEvent(QShowEvent *event) } } +void SkeletonDocumentWindow::mousePressEvent(QMouseEvent *event) +{ + QMainWindow::mousePressEvent(event); +} + void SkeletonDocumentWindow::changeTurnaround() { QString fileName = QFileDialog::getOpenFileName(this, QString(), QString(), diff --git a/src/skeletondocumentwindow.h b/src/skeletondocumentwindow.h index ded4c7c7..f3bcc044 100644 --- a/src/skeletondocumentwindow.h +++ b/src/skeletondocumentwindow.h @@ -26,6 +26,7 @@ public: protected: void showEvent(QShowEvent *event); void closeEvent(QCloseEvent *event); + void mousePressEvent(QMouseEvent *event); public slots: void changeTurnaround(); void save();