Some messagebox stuff.

This commit is contained in:
Martin Rotter 2015-07-08 10:04:57 +02:00
parent 9dce9f4a7d
commit 0f48b4fe34
2 changed files with 3 additions and 7 deletions

View File

@ -35,6 +35,8 @@ struct FeedDownloadResults {
return lhs.second > rhs.second; return lhs.second > rhs.second;
} }
// QString represents title if the feed, int represents
// count of newly downloaded messages.
QList<QPair<QString,int> > m_updatedFeeds; QList<QPair<QString,int> > m_updatedFeeds;
}; };

View File

@ -128,13 +128,7 @@ void Application::processExecutionMessage(const QString &message) {
qDebug("Received '%s' execution message from another application instance.", qPrintable(message)); qDebug("Received '%s' execution message from another application instance.", qPrintable(message));
if (message == APP_IS_RUNNING) { if (message == APP_IS_RUNNING) {
if (SystemTrayIcon::isSystemTrayActivated()) { showGuiMessage(APP_NAME, tr("Application is already running."), QSystemTrayIcon::Information);
qApp->trayIcon()->showMessage(APP_NAME,
tr("Application is already running."),
QSystemTrayIcon::Information,
TRAY_ICON_BUBBLE_TIMEOUT);
}
mainForm()->display(); mainForm()->display();
} }
else if (message == APP_QUIT_INSTANCE) { else if (message == APP_QUIT_INSTANCE) {