on xenial help sign in
Only monitor wizard file if exists
commit45ad1987cf2cf78439eec2a749ae91f3bddab5cb authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 1 May 2015, 14:27 (11 years ago) parentbaf65d4
1 file changed+3−1
plugins/Wizard/System.cpp+3−1
plugins/Wizard/System.cpp+3−1
@@ -31,7 +31,9 @@ System::System()
3131 // Register the argument needed for UpdateActivationEnvironment below
3232 qDBusRegisterMetaType<QMap<QString,QString>>();
3333
34− m_fsWatcher.addPath(wizardEnabledPath());
34+ if(!wizardEnabled()) {
35+ m_fsWatcher.addPath(wizardEnabledPath());
36+ }
3537 connect(&m_fsWatcher, SIGNAL(fileChanged(const QString &)),
3638 this, SIGNAL(wizardEnabledChanged()));
3739}