[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra/kexi-frameworks7-staniek] kexi/core: KexiPartInfo: use untranslatedGroupName as default fo
From:       Jaroslaw Staniek <staniek () kde ! org>
Date:       2015-06-30 20:24:24
Message-ID: E1ZA24u-0006Ps-3E () scm ! kde ! org
[Download RAW message or body]

Git commit 9cb187276a9b3d0b44a07967bb84266fdbd98845 by Jaroslaw Staniek.
Committed on 30/06/2015 at 20:16.
Pushed by staniek into branch 'kexi-frameworks7-staniek'.

KexiPartInfo: use untranslatedGroupName as default for the groupName field

M  +2    -2    kexi/core/kexipartinfo.cpp

http://commits.kde.org/calligra/9cb187276a9b3d0b44a07967bb84266fdbd98845

diff --git a/kexi/core/kexipartinfo.cpp b/kexi/core/kexipartinfo.cpp
index 91d0ac8..c6c43c8 100644
--- a/kexi/core/kexipartinfo.cpp
+++ b/kexi/core/kexipartinfo.cpp
@@ -40,8 +40,7 @@ static bool isTrue(KPluginMetaData *metaData, const char* fieldName)
 }
 
 Info::Private::Private(Info *info, const QJsonObject &rootObject)
-    : groupName(info->readTranslatedString(rootObject, "X-Kexi-GroupName"))
-    , untranslatedGroupName(info->value("X-Kexi-GroupName"))
+    : untranslatedGroupName(info->value("X-Kexi-GroupName"))
     , typeName(info->value("X-Kexi-TypeName"))
     , supportedViewModes(0)
     , supportedUserViewModes(0)
@@ -52,6 +51,7 @@ Info::Private::Private(Info *info, const QJsonObject &rootObject)
     , isPropertyEditorAlwaysVisibleInDesignMode(
           isTrue(info, "X-Kexi-PropertyEditorAlwaysVisibleInDesignMode"))
 {
+    groupName = info->readTranslatedString(rootObject, "X-Kexi-GroupName", untranslatedGroupName);
     const QStringList serviceTypes = info->serviceTypes();
     if (serviceTypes.contains("Kexi/Viewer")) {
         supportedViewModes |= Kexi::DataViewMode;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic