summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/themesinstallwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rbutilqt/themesinstallwindow.cpp')
-rw-r--r--utils/rbutilqt/themesinstallwindow.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/utils/rbutilqt/themesinstallwindow.cpp b/utils/rbutilqt/themesinstallwindow.cpp
index 3dd564c5e5..1c4281d25b 100644
--- a/utils/rbutilqt/themesinstallwindow.cpp
+++ b/utils/rbutilqt/themesinstallwindow.cpp
@@ -85,8 +85,13 @@ void ThemesInstallWindow::downloadInfo()
85 themesInfo.close(); 85 themesInfo.close();
86 86
87 QString infoUrl = PlayerBuildInfo::instance()->value(PlayerBuildInfo::ThemesInfoUrl).toString(); 87 QString infoUrl = PlayerBuildInfo::instance()->value(PlayerBuildInfo::ThemesInfoUrl).toString();
88 infoUrl.replace("%TARGET%", 88 if (PlayerBuildInfo::instance()->value(PlayerBuildInfo::ThemeName).toString() != "") {
89 RbSettings::value(RbSettings::CurrentPlatform).toString().split(".").at(0)); 89 infoUrl.replace("%TARGET%",
90 PlayerBuildInfo::instance()->value(PlayerBuildInfo::ThemeName).toString());
91 } else {
92 infoUrl.replace("%TARGET%",
93 RbSettings::value(RbSettings::CurrentPlatform).toString().split(".").at(0));
94 }
90 infoUrl.replace("%REVISION%", installInfo.revision()); 95 infoUrl.replace("%REVISION%", installInfo.revision());
91 infoUrl.replace("%RELEASE%", installInfo.release()); 96 infoUrl.replace("%RELEASE%", installInfo.release());
92 infoUrl.replace("%RBUTILVER%", VERSION); 97 infoUrl.replace("%RBUTILVER%", VERSION);