summaryrefslogtreecommitdiffstats
path: root/src/scanprogressdlg.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-26 01:30:17 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-26 15:03:08 +0200
commit5cad60063799de1846011f1fd5c6023166df9d28 (patch)
tree90c4487ec8629b334332dff9757b6bbe1210ce4f /src/scanprogressdlg.cpp
parent78178b45c79a3fb909e9214664dc7dc1c577bed9 (diff)
downloadkscope-5cad60063799de1846011f1fd5c6023166df9d28.tar.gz
kscope-5cad60063799de1846011f1fd5c6023166df9d28.zip
Fix missing or incorrect ascii conversions when retrieving process output.
Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 5004b40e99036a0d9346dba6b5e6a4553de5a65e)
Diffstat (limited to 'src/scanprogressdlg.cpp')
-rw-r--r--src/scanprogressdlg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanprogressdlg.cpp b/src/scanprogressdlg.cpp
index 52dcf08..28708fa 100644
--- a/src/scanprogressdlg.cpp
+++ b/src/scanprogressdlg.cpp
@@ -73,7 +73,7 @@ void ScanProgressDlg::addFiles(int nFiles)
// Update progress only if more than 100 files were scanned since the last
// update
if ((m_nFiles - m_nCurFiles) > 100) {
- sText.sprintf(i18n("Scanned %d files..."), m_nFiles);
+ sText.sprintf(i18n("Scanned %d files...").utf8(), m_nFiles);
m_pText->setText(sText);
m_nCurFiles = m_nFiles;
}