mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix spurious quitting when dialog closed and in tray
This commit is contained in:
parent
dc36bf379f
commit
8ccd3bb3bf
|
@ -177,6 +177,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
// Run
|
||||
a.setQuitOnLastWindowClosed(false);
|
||||
Widget* w = Widget::getInstance();
|
||||
int errorcode = a.exec();
|
||||
|
||||
|
|
|
@ -360,6 +360,7 @@ void Widget::closeEvent(QCloseEvent *event)
|
|||
{
|
||||
saveWindowGeometry();
|
||||
saveSplitterGeometry();
|
||||
qApp->exit(0);
|
||||
QWidget::closeEvent(event);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user