Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2018-10-29 20:52:38 +0300
committerOlivier Goffart <ogoffart@woboq.com>2018-10-29 20:52:38 +0300
commitc82d9ef65b631cb60853037d2f947eb7330a095e (patch)
tree553a19e324b614e01643455802f643466b1df1a7 /src/gui/generalsettings.cpp
parentee62c259e5e011613e2112c777fdce88eff3cd55 (diff)
parentafa21f89e758b992411299317b6bf5ba02e97e21 (diff)
Merge remote-tracking branch 'origin/2.5'
Diffstat (limited to 'src/gui/generalsettings.cpp')
-rw-r--r--src/gui/generalsettings.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp
index d6a33fed1..dc2335ddd 100644
--- a/src/gui/generalsettings.cpp
+++ b/src/gui/generalsettings.cpp
@@ -51,9 +51,14 @@ GeneralSettings::GeneralSettings(QWidget *parent)
this, &GeneralSettings::slotToggleOptionalDesktopNotifications);
connect(_ui->showInExplorerNavigationPaneCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::slotShowInExplorerNavigationPane);
- _ui->autostartCheckBox->setChecked(Utility::hasLaunchOnStartup(Theme::instance()->appName()));
- connect(_ui->autostartCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::slotToggleLaunchOnStartup);
-
+ if(Utility::hasSystemLaunchOnStartup(Theme::instance()->appName())) {
+ _ui->autostartCheckBox->setChecked(true);
+ _ui->autostartCheckBox->setDisabled(true);
+ _ui->autostartCheckBox->setToolTip(tr("You cannot disable autostart because system-wide autostart is enabled."));
+ } else {
+ _ui->autostartCheckBox->setChecked(Utility::hasLaunchOnStartup(Theme::instance()->appName()));
+ connect(_ui->autostartCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::slotToggleLaunchOnStartup);
+ }
loadMiscSettings();
slotUpdateInfo();