diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-01-05 16:34:10 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-01-05 19:11:22 -0600 |
| commit | f2c145b2fc9d6ffce838398e06f7aa583d05887d (patch) | |
| tree | eef3a53958d96977f4b97f7a1b619434caacdb6f /src/selfupdater.cpp | |
| parent | cc7d1ed7212d566de74ce24ac5188cb22f96779e (diff) | |
Change qPrintable to qUtf8Printable to better support non-ASCII text
Diffstat (limited to 'src/selfupdater.cpp')
| -rw-r--r-- | src/selfupdater.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp index d26ca96c..cdcbc2f4 100644 --- a/src/selfupdater.cpp +++ b/src/selfupdater.cpp @@ -145,15 +145,15 @@ void SelfUpdater::testForUpdate() if (newestVer > this->m_MOVersion) {
m_UpdateCandidate = newest;
qDebug("update available: %s -> %s",
- qPrintable(this->m_MOVersion.displayString()),
- qPrintable(newestVer.displayString()));
+ qUtf8Printable(this->m_MOVersion.displayString()),
+ qUtf8Printable(newestVer.displayString()));
emit updateAvailable();
} else if (newestVer < this->m_MOVersion) {
// this could happen if the user switches from using prereleases to
// stable builds. Should we downgrade?
qDebug("this version is newer than the newest installed one: %s -> %s",
- qPrintable(this->m_MOVersion.displayString()),
- qPrintable(newestVer.displayString()));
+ qUtf8Printable(this->m_MOVersion.displayString()),
+ qUtf8Printable(newestVer.displayString()));
}
}
});
@@ -224,7 +224,7 @@ void SelfUpdater::closeProgress() void SelfUpdater::openOutputFile(const QString &fileName)
{
QString outputPath = QDir::fromNativeSeparators(qApp->property("dataPath").toString()) + "/" + fileName;
- qDebug("downloading to %s", qPrintable(outputPath));
+ qDebug("downloading to %s", qUtf8Printable(outputPath));
m_UpdateFile.setFileName(outputPath);
m_UpdateFile.open(QIODevice::WriteOnly);
}
|
