diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/kvirc/kernel/KviApplication.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kvirc/kernel/KviApplication.cpp b/src/kvirc/kernel/KviApplication.cpp index 764fc408c..44ca6ea2f 100644 --- a/src/kvirc/kernel/KviApplication.cpp +++ b/src/kvirc/kernel/KviApplication.cpp @@ -792,7 +792,8 @@ void KviApplication::notifierMessage(KviWindow * pWnd, int iIconId, const QStrin actions << __tr2qs("Ignore"); pNotify->setActions(actions); - pNotify->setFlags(KNotification::CloseWhenWidgetActivated|KNotification::Persistent); + pNotify->setFlags(KNotification::CloseWhenWidgetActivated | + (uMessageLifetime == 0 ? KNotification::Persistent : KNotification::CloseOnTimeout)); pNotify->setWidget(g_pMainWindow); connect(pNotify, SIGNAL(activated()), this, SLOT(showParentFrame())); @@ -830,7 +831,8 @@ void KviApplication::notifierMessage(KviWindow * pWnd, int iIconId, const QStrin action = pNotify->addAction(__tr2qs("Ignore")); connect(action, SIGNAL(activated()), pNotify, SLOT(close())); - pNotify->setFlags(KNotification::CloseWhenWindowActivated|KNotification::Persistent); + pNotify->setFlags(KNotification::CloseWhenWindowActivated | + (uMessageLifetime == 0 ? KNotification::Persistent : KNotification::CloseOnTimeout)); pNotify->setWindow(g_pMainWindow->windowHandle()); #endif // QT_VERSION < QT_VERSION_CHECK(6, 0, 0) |
