1
0
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:
Tux3 / Mlkj / !Lev.uXFMLA 2015-02-01 00:03:42 +01:00
parent dc36bf379f
commit 8ccd3bb3bf
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,7 @@ int main(int argc, char *argv[])
}
// Run
a.setQuitOnLastWindowClosed(false);
Widget* w = Widget::getInstance();
int errorcode = a.exec();

View File

@ -360,6 +360,7 @@ void Widget::closeEvent(QCloseEvent *event)
{
saveWindowGeometry();
saveSplitterGeometry();
qApp->exit(0);
QWidget::closeEvent(event);
}
}