mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-23 14:11:44 +01:00
Some messagebox stuff.
This commit is contained in:
parent
9dce9f4a7d
commit
0f48b4fe34
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user