mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Fix crash in main window destruction.
This commit is contained in:
@@ -705,6 +705,17 @@ void MainWindow::launchDrag(std::unique_ptr<QMimeData> data) {
|
|||||||
|
|
||||||
MainWindow::~MainWindow() {
|
MainWindow::~MainWindow() {
|
||||||
_title.destroy();
|
_title.destroy();
|
||||||
|
|
||||||
|
// Otherwise:
|
||||||
|
// ~QWidget
|
||||||
|
// QWidgetPrivate::close_helper
|
||||||
|
// QWidgetPrivate::setVisible
|
||||||
|
// QWidgetPrivate::hide_helper
|
||||||
|
// QWidgetPrivate::hide_sys
|
||||||
|
// QWindowPrivate::setVisible
|
||||||
|
// QMetaObject::activate
|
||||||
|
// Window::MainWindow::handleVisibleChanged on a destroyed MainWindow.
|
||||||
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Window
|
} // namespace Window
|
||||||
|
Reference in New Issue
Block a user