mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix crash in main window destruction.
This commit is contained in:
parent
b08fa069b4
commit
c4dfc634d0
@ -705,6 +705,17 @@ void MainWindow::launchDrag(std::unique_ptr<QMimeData> data) {
|
||||
|
||||
MainWindow::~MainWindow() {
|
||||
_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
|
||||
|
Loading…
x
Reference in New Issue
Block a user