summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/serverinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/serverinfo.cpp')
-rw-r--r--rbutil/rbutilqt/base/serverinfo.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/rbutil/rbutilqt/base/serverinfo.cpp b/rbutil/rbutilqt/base/serverinfo.cpp
index 94c369af72..84aa89039d 100644
--- a/rbutil/rbutilqt/base/serverinfo.cpp
+++ b/rbutil/rbutilqt/base/serverinfo.cpp
@@ -85,22 +85,21 @@ QVariant ServerInfo::platformValue(enum ServerInfos info, QString platform)
85 value = value.toStringList().at(0); 85 value = value.toStringList().at(0);
86 break; 86 break;
87 case CurReleaseUrl: 87 case CurReleaseUrl:
88 case RelCandidateUrl:
88 { 89 {
89 QString version = value.toStringList().at(0); 90 QString version = value.toStringList().at(0);
90 if(value.toStringList().size() > 1) 91 if(value.toStringList().size() > 1)
91 value = value.toStringList().at(1); 92 value = value.toStringList().at(1);
92 else if(!version.isEmpty()) // if value is empty, return empty url. 93 else if(!version.isEmpty() && info == CurReleaseUrl)
93 value = SystemInfo::value(SystemInfo::ReleaseUrl).toString() 94 value = SystemInfo::value(SystemInfo::ReleaseUrl).toString()
94 .replace("%MODEL%", platform) 95 .replace("%MODEL%", platform)
95 .replace("%RELVERSION%", version); 96 .replace("%RELVERSION%", version);
97 else if(!version.isEmpty() && info == RelCandidateUrl)
98 value = SystemInfo::value(SystemInfo::CandidateUrl).toString()
99 .replace("%MODEL%", platform)
100 .replace("%RELVERSION%", version);
96 } 101 }
97 break; 102 break;
98 case RelCandidateUrl:
99 if(value.toStringList().size() > 1)
100 value = value.toStringList().at(1);
101 else
102 value.clear();
103 break;
104 case CurDevelUrl: 103 case CurDevelUrl:
105 value = SystemInfo::value(SystemInfo::BleedingUrl).toString() 104 value = SystemInfo::value(SystemInfo::BleedingUrl).toString()
106 .replace("%MODEL%", platform); 105 .replace("%MODEL%", platform);