summaryrefslogtreecommitdiff
path: root/client/ProxyClientApp.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2011-11-06 01:21:38 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2011-11-06 01:21:38 +0200
commitba692c61d8939d2f7ef7c76f08dfa5ccdc084311 (patch)
tree75cb2808898fd89b89e4d9f36c2dc5adace1bcc6 /client/ProxyClientApp.cpp
parentb924f6df6ea7038eab61b62949bedf8abf26ac2e (diff)
fixed icon hiding on exit
fixed icon path (also, should be in skin directory instead of root)
Diffstat (limited to 'client/ProxyClientApp.cpp')
-rwxr-xr-x[-rw-r--r--]client/ProxyClientApp.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/ProxyClientApp.cpp b/client/ProxyClientApp.cpp
index 418fe6a..bbdce0f 100644..100755
--- a/client/ProxyClientApp.cpp
+++ b/client/ProxyClientApp.cpp
@@ -25,8 +25,9 @@ ProxyClientApp::ProxyClientApp(int &argc, char *argv[]): QApplication(argc, argv
trayMenu->addAction(showAction);
trayMenu->addAction(quitAction);
- QIcon *icon = new QIcon(QCoreApplication::applicationDirPath() + "/icon.png");
- QSystemTrayIcon *trayIcon = new QSystemTrayIcon(*icon);
+// QIcon *icon = new QIcon(QCoreApplication::applicationDirPath() + "/icon.png"); //does not work %)
+ QIcon *icon = new QIcon(this_app->applicationDirPath() + "/icon.png");
+ trayIcon = new QSystemTrayIcon(*icon);
connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
this, SLOT(trayActivated(QSystemTrayIcon::ActivationReason)));
trayIcon->setContextMenu(trayMenu);
@@ -54,5 +55,6 @@ void ProxyClientApp::showProxyDialog()
void ProxyClientApp::quitApp()
{
Logger::Info("Terminating\n");
+ trayIcon->hide();
QApplication::exit(0);
}