[Pkg-owncloud-commits] [owncloud-client] 26/47: Use the appName (which is the short name) instead of the full length name

Sandro Knauß hefee-guest at moszumanska.debian.org
Mon Feb 17 18:06:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit fd40a25030d885181c02a846921764d3214345d0
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Wed Feb 12 18:06:01 2014 +0100

    Use the appName (which is the short name) instead of the full length name
    
    The full length name is allowed to change (or should be)
---
 src/mirall/mirallconfigfile.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mirall/mirallconfigfile.cpp b/src/mirall/mirallconfigfile.cpp
index 27b67a0..9460195 100644
--- a/src/mirall/mirallconfigfile.cpp
+++ b/src/mirall/mirallconfigfile.cpp
@@ -147,7 +147,7 @@ QVariant MirallConfigFile::getPolicySetting(const QString &setting, const QVaria
     if (Utility::isWindows()) {
         // check for policies first and return immediately if a value is found.
         QSettings userPolicy(QString::fromLatin1("HKEY_CURRENT_USER\\Software\\Policies\\%1\\%2")
-                             .arg(APPLICATION_VENDOR).arg(APPLICATION_NAME),
+                             .arg(APPLICATION_VENDOR).arg(Theme::instance()->appName()),
                              QSettings::NativeFormat);
         if(userPolicy.contains(setting)) {
             return userPolicy.value(setting);
@@ -417,7 +417,7 @@ QVariant MirallConfigFile::getValue(const QString& param, const QString& group,
         systemSetting = systemSettings.value(param, defaultValue);
     } else { // Windows
         QSettings systemSettings(QString::fromLatin1("HKEY_LOCAL_MACHINE\\Software\\%1\\%2")
-                                .arg(APPLICATION_VENDOR).arg(APPLICATION_NAME),
+                                .arg(APPLICATION_VENDOR).arg(Theme::instance()->appName()),
                                 QSettings::NativeFormat);
         if (!group.isEmpty()) {
             systemSettings.beginGroup(group);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list