diff options
| author | 2015-08-27 04:16:03 +0200 | |
|---|---|---|
| committer | 2015-08-27 04:16:03 +0200 | |
| commit | b59a43f57ecc290d6798a29402256c169f5b1bd2 (patch) | |
| tree | 33a115a647c2a8acdf38181026b141407dc12ffd /src/modules/theme/SaveThemeDialog.cpp | |
| parent | Merge branch 'master' of https://github.com/kvirc/KVIrc (diff) | |
| download | KVIrc-b59a43f57ecc290d6798a29402256c169f5b1bd2.tar.gz KVIrc-b59a43f57ecc290d6798a29402256c169f5b1bd2.tar.bz2 KVIrc-b59a43f57ecc290d6798a29402256c169f5b1bd2.zip | |
More work on theme packing
Diffstat (limited to 'src/modules/theme/SaveThemeDialog.cpp')
| -rw-r--r-- | src/modules/theme/SaveThemeDialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/theme/SaveThemeDialog.cpp b/src/modules/theme/SaveThemeDialog.cpp index df3d38a49..01d29d15e 100644 --- a/src/modules/theme/SaveThemeDialog.cpp +++ b/src/modules/theme/SaveThemeDialog.cpp @@ -249,10 +249,11 @@ bool SaveThemeDialog::saveTheme() sto.setVersion(m_pThemeVersionEdit->text()); sto.setApplication("KVIrc " KVI_VERSION "." KVI_SOURCES_DATE); - if(sto.version().isEmpty())sto.setVersion("1.0.0"); + if(sto.version().isEmpty()) + sto.setVersion("1.0.0"); QString szSubdir = sto.name() + QString("-") + sto.version(); - szSubdir.replace(QRegExp("[ \\\\/:][ \\\\/:]*"),"_"); + szSubdir.replace(QRegExp("[^a-zA-Z0-9_\\-.][^a-zA-Z0-9_\\-.]*"),"_"); sto.setDirectoryAndLocation(szSubdir,KviThemeInfo::User); QString szAbsDir = sto.directory(); @@ -291,3 +292,4 @@ bool SaveThemeDialog::saveTheme() return true; } + |
