summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2019-01-05 16:34:10 -0600
committerLostDragonist <lost.dragonist@gmail.com>2019-01-05 19:11:22 -0600
commitf2c145b2fc9d6ffce838398e06f7aa583d05887d (patch)
treeeef3a53958d96977f4b97f7a1b619434caacdb6f /src/settings.cpp
parentcc7d1ed7212d566de74ce24ac5188cb22f96779e (diff)
Change qPrintable to qUtf8Printable to better support non-ASCII text
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 8f768fd2..5cfe427b 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -167,7 +167,7 @@ void Settings::registerPlugin(IPlugin *plugin)
QVariant temp = m_Settings.value("Plugins/" + plugin->name() + "/" + setting.key, setting.defaultValue);
if (!temp.convert(setting.defaultValue.type())) {
qWarning("failed to interpret \"%s\" as correct type for \"%s\" in plugin \"%s\", using default",
- qPrintable(temp.toString()), qPrintable(setting.key), qPrintable(plugin->name()));
+ qUtf8Printable(temp.toString()), qUtf8Printable(setting.key), qUtf8Printable(plugin->name()));
temp = setting.defaultValue;
}
m_PluginSettings[plugin->name()][setting.key] = temp;
@@ -574,7 +574,7 @@ void Settings::updateServers(const QList<ServerInfo> &servers)
QVariantMap val = m_Settings.value(key).toMap();
QDate lastSeen = val["lastSeen"].toDate();
if (lastSeen.daysTo(now) > 30) {
- qDebug("removing server %s since it hasn't been available for downloads in over a month", qPrintable(key));
+ qDebug("removing server %s since it hasn't been available for downloads in over a month", qUtf8Printable(key));
m_Settings.remove(key);
}
}