diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a379c8360e..ada6e37aaa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -81,6 +81,8 @@ set(libsync_HEADERS mirall/folderwatcher.h mirall/owncloudfolder.h mirall/csyncthread.h + mirall/theme.h + mirall/owncloudtheme.h mirall/owncloudinfo.h mirall/credentialstore.h mirall/logger.h @@ -175,7 +177,6 @@ set(mirall_HEADERS mirall/generalsettings.h mirall/accountsettings.h mirall/ignorelisteditor.h - mirall/theme.h ) if( UNIX AND NOT APPLE) diff --git a/src/mirall/owncloudtheme.h b/src/mirall/owncloudtheme.h index 922ff0c030..9dbf39d1aa 100644 --- a/src/mirall/owncloudtheme.h +++ b/src/mirall/owncloudtheme.h @@ -21,6 +21,7 @@ namespace Mirall { class ownCloudTheme : public Theme { + Q_OBJECT public: ownCloudTheme(); diff --git a/src/mirall/utility.cpp b/src/mirall/utility.cpp index a3220df6ea..a2e22b69c5 100644 --- a/src/mirall/utility.cpp +++ b/src/mirall/utility.cpp @@ -164,7 +164,7 @@ static const char runPathC[] = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\ bool Utility::hasLaunchOnStartup(const QString &appName) { #if defined(Q_OS_WIN) - QString runPath(QLatin1String(runPathC)); + QString runPath = QLatin1String(runPathC); QSettings settings(runPath, QSettings::NativeFormat); return settings.contains(appName); #elif defined(Q_OS_MAC) @@ -182,7 +182,8 @@ namespace { void Utility::setLaunchOnStartup(const QString &appName, const QString& guiName, bool enable) { #if defined(Q_OS_WIN) - QString runPath(QLatin1String(runPathC)); + Q_UNUSED(guiName) + QString runPath = QLatin1String(runPathC); QSettings settings(runPath, QSettings::NativeFormat); if (enable) { settings.setValue(appName, QCoreApplication::applicationFilePath().replace('/','\\'));