diff options
Diffstat (limited to 'src/modules/theme/libkvitheme.cpp')
| -rw-r--r-- | src/modules/theme/libkvitheme.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/theme/libkvitheme.cpp b/src/modules/theme/libkvitheme.cpp index d17b3fe7f..f1b368cb5 100644 --- a/src/modules/theme/libkvitheme.cpp +++ b/src/modules/theme/libkvitheme.cpp @@ -28,7 +28,6 @@ #include "KviMessageBox.h" #include "KviModule.h" #include "KviLocale.h" -#include "KviQString.h" #include "KviParameterList.h" #include "KviCommandFormatter.h" #include "KviError.h" @@ -118,8 +117,7 @@ static bool theme_kvs_cmd_apply(KviKvsModuleCommandCall * c) if(!KviTheme::load(szPath,out)) { QString szErr = out.lastError(); - QString szMsg; - KviQString::sprintf(szMsg,__tr2qs_ctx("Failed to apply the specified theme: %Q","theme"),&szErr); + QString szMsg = QString(__tr2qs_ctx("Failed to apply the specified theme: %1","theme")).arg(szErr); QMessageBox::critical(0,__tr2qs_ctx("Apply theme - KVIrc","theme"),szMsg, QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton); } |
