diff options
author | Mateusz Łukasik <mati75@linuxmint.pl> | 2016-04-08 10:03:05 +0200 |
---|---|---|
committer | Mateusz Łukasik <mati75@linuxmint.pl> | 2016-04-08 10:03:05 +0200 |
commit | 1a2f0c9c1087899a00298db8fa70518d3c1e69f8 (patch) | |
tree | 7efa117e122fbe21eb6a832540007aeeef377fcb /src/baseguiplus.cpp | |
parent | ba0162e8cb8a12c90ef9775f5a20a6da095a0b35 (diff) |
Imported Upstream version 16.4.0~ds0
Diffstat (limited to 'src/baseguiplus.cpp')
-rw-r--r-- | src/baseguiplus.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/baseguiplus.cpp b/src/baseguiplus.cpp index e4f7b2f..3280e74 100644 --- a/src/baseguiplus.cpp +++ b/src/baseguiplus.cpp @@ -63,7 +63,7 @@ BaseGuiPlus::BaseGuiPlus( QWidget * parent, Qt::WindowFlags flags) mainwindow_pos = pos(); - tray = new QSystemTrayIcon( Images::icon("logo", 22), this ); + tray = new QSystemTrayIcon(this); tray->setToolTip( "SMPlayer" ); connect( tray, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), @@ -156,6 +156,7 @@ BaseGuiPlus::BaseGuiPlus( QWidget * parent, Qt::WindowFlags flags) BaseGuiPlus::~BaseGuiPlus() { saveConfig(); + tray->hide(); } bool BaseGuiPlus::startHidden() { @@ -206,6 +207,8 @@ void BaseGuiPlus::quit() { void BaseGuiPlus::retranslateStrings() { BaseGui::retranslateStrings(); + tray->setIcon(Images::icon("logo", 22)); + quitAct->change( Images::icon("exit"), tr("&Quit") ); showTrayAct->change( Images::icon("systray"), tr("S&how icon in system tray") ); |