aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2011-03-17 18:10:40 +0000
committerGravatar Szymon Tomasz Stefanek2011-03-17 18:10:40 +0000
commit0e4b91a68e315c94dfe0730f2bf88c226a5fb6b0 (patch)
tree608017be35218196cd1c856ef5c890dea44682d4 /src/modules
parentuse the os style for treewindowlist selection, but override it with the user-... (diff)
downloadKVIrc-0e4b91a68e315c94dfe0730f2bf88c226a5fb6b0.tar.gz
KVIrc-0e4b91a68e315c94dfe0730f2bf88c226a5fb6b0.tar.bz2
KVIrc-0e4b91a68e315c94dfe0730f2bf88c226a5fb6b0.zip
Set the package url dynamically so the current language can be specified too
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5625 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/theme/WebThemeInterfaceDialog.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/theme/WebThemeInterfaceDialog.cpp b/src/modules/theme/WebThemeInterfaceDialog.cpp
index 8be3a2dbf..585f003dd 100644
--- a/src/modules/theme/WebThemeInterfaceDialog.cpp
+++ b/src/modules/theme/WebThemeInterfaceDialog.cpp
@@ -37,10 +37,7 @@
WebThemeInterfaceDialog::WebThemeInterfaceDialog(QWidget * par)
-: KviWebPackageManagementDialog(
- QString::fromAscii("http://www.kvirc.de/app/themes.php"),
- par
- )
+: KviWebPackageManagementDialog(par)
{
setWindowTitle(__tr2qs_ctx("KVIrc Web Theme Interface","theme"));
@@ -52,6 +49,10 @@ WebThemeInterfaceDialog::WebThemeInterfaceDialog(QWidget * par)
g_pApp->getGlobalKvircDirectory(m_szGlobalThemesPath,KviApplication::Themes);
m_szGlobalThemesPath += KVI_PATH_SEPARATOR_CHAR;
+ setPackagePageUrl(
+ QString::fromAscii("http://www.kvirc.de/app/themes.php?version=" KVI_VERSION "&lang=%1")
+ .arg(QString::fromUtf8(KviLocale::localeName().ptr()))
+ );
}
WebThemeInterfaceDialog::~WebThemeInterfaceDialog()
{