diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-19 01:09:19 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-22 07:34:53 -0400 |
| commit | aae6d6a5aa8d6b101fcc38388222a8a6e7ee2ec6 (patch) | |
| tree | 0550b5896c9f929342d3b5fd534f17f21a7fd579 /src/settings.cpp | |
| parent | f13f5e21c42b3b5bdfdc4fcab50e10abd92c8486 (diff) | |
replaced qWarning()
Diffstat (limited to 'src/settings.cpp')
| -rw-r--r-- | src/settings.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index e622d632..92ae2251 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -165,8 +165,9 @@ void Settings::registerPlugin(IPlugin *plugin) for (const PluginSetting &setting : plugin->settings()) { 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", - qUtf8Printable(temp.toString()), qUtf8Printable(setting.key), qUtf8Printable(plugin->name())); + log::warn( + "failed to interpret \"{}\" as correct type for \"{}\" in plugin \"{}\", using default", + temp.toString(), setting.key, plugin->name()); temp = setting.defaultValue; } m_PluginSettings[plugin->name()][setting.key] = temp; |
