1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
When minimized to tray, if a popup is closed, Qt notices that the last window is closed and exits. Tel Tell friend request dialogs to not exit on close
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2015-01-24 19:58:16 +01:00
parent 9b9b6bae99
commit 3262326657
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -26,6 +26,7 @@
FriendRequestDialog::FriendRequestDialog(QWidget *parent, const QString &userId, const QString &message) : FriendRequestDialog::FriendRequestDialog(QWidget *parent, const QString &userId, const QString &message) :
QDialog(parent) QDialog(parent)
{ {
setAttribute(Qt::WA_QuitOnClose, false);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setWindowTitle(tr("Friend request","Title of the window to aceept/deny a friend request")); setWindowTitle(tr("Friend request","Title of the window to aceept/deny a friend request"));