mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
disable system tray if not available
This commit is contained in:
parent
cd070dea46
commit
56fcd38851
@ -81,6 +81,13 @@ GeneralPage::GeneralPage(QWidget * parent, Qt::WindowFlags flags) :
|
|||||||
|
|
||||||
ui.checkCloseToTray->setChecked(false) ; // default should be false because some systems to not support this.
|
ui.checkCloseToTray->setChecked(false) ; // default should be false because some systems to not support this.
|
||||||
|
|
||||||
|
if(!QSystemTrayIcon::isSystemTrayAvailable())
|
||||||
|
{
|
||||||
|
ui.checkCloseToTray->setChecked(false) ; // default should be false because some systems to not support this.
|
||||||
|
ui.checkCloseToTray->setToolTip(tr("No Qt-compatible system tray was found on this system."));
|
||||||
|
Settings->setCloseToTray(false);
|
||||||
|
}
|
||||||
|
|
||||||
/* Connect signals */
|
/* Connect signals */
|
||||||
connect(ui.useLocalServer, SIGNAL(toggled(bool)), this,SLOT(updateUseLocalServer())) ;
|
connect(ui.useLocalServer, SIGNAL(toggled(bool)), this,SLOT(updateUseLocalServer())) ;
|
||||||
connect(ui.idleSpinBox, SIGNAL(valueChanged(int)), this,SLOT(updateMaxTimeBeforeIdle())) ;
|
connect(ui.idleSpinBox, SIGNAL(valueChanged(int)), this,SLOT(updateMaxTimeBeforeIdle())) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user