mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix crash in main window destruction.
This commit is contained in:
parent
b08fa069b4
commit
c4dfc634d0
1 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue