summaryrefslogtreecommitdiff
path: root/src/editexecutablesdialog.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jrim@rimpo.org>2019-08-02 01:49:33 -0500
committerGitHub <noreply@github.com>2019-08-02 01:49:33 -0500
commitcff526415d781cb8a7761961ae2bd1fb6775c376 (patch)
treecf5ff4f0d7bdd3767155a8a3e251201861284f89 /src/editexecutablesdialog.cpp
parentbdf45aea69ab7df0b01eb87cc80a2641ea4261d0 (diff)
parente4cf2c314d6397c5d73bcf567d4420171238bd29 (diff)
Merge pull request #807 from isanae/logging-rework
Logging rework
Diffstat (limited to 'src/editexecutablesdialog.cpp')
-rw-r--r--src/editexecutablesdialog.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/editexecutablesdialog.cpp b/src/editexecutablesdialog.cpp
index 8929d207..3ec3d64f 100644
--- a/src/editexecutablesdialog.cpp
+++ b/src/editexecutablesdialog.cpp
@@ -101,9 +101,7 @@ ExecutablesList EditExecutablesDialog::getExecutablesList() const
auto itor = m_executablesList.find(title);
if (itor == m_executablesList.end()) {
- qWarning().nospace()
- << "getExecutablesList(): executable '" << title << "' not found";
-
+ log::warn("getExecutablesList(): executable '{}' not found", title);
continue;
}
@@ -293,9 +291,10 @@ void EditExecutablesDialog::setEdits(const Executable& e)
modIndex = ui->mods->findText(modName->value);
if (modIndex == -1) {
- qWarning().nospace()
- << "executable '" << e.title() << "' uses mod '" << modName->value << "' "
- << "as a custom overwrite, but that mod doesn't exist";
+ log::warn(
+ "executable '{}' uses mod '{}' as a custom overwrite, but that mod "
+ "doesn't exist",
+ e.title(), modName->value);
}
}
@@ -335,7 +334,7 @@ void EditExecutablesDialog::save()
auto* e = selectedExe();
if (!e) {
- qWarning("trying to save but nothing is selected");
+ log::warn("trying to save but nothing is selected");
return;
}
@@ -475,13 +474,13 @@ void EditExecutablesDialog::on_remove_clicked()
{
auto* item = selectedItem();
if (!item) {
- qWarning("trying to remove entry but nothing is selected");
+ log::warn("trying to remove entry but nothing is selected");
return;
}
auto* exe = selectedExe();
if (!exe) {
- qWarning("trying to remove entry but nothing is selected");
+ log::warn("trying to remove entry but nothing is selected");
return;
}
@@ -646,7 +645,7 @@ void EditExecutablesDialog::on_configureLibraries_clicked()
{
auto* e = selectedExe();
if (!e) {
- qWarning("trying to configure libraries but nothing is selected");
+ log::warn("trying to configure libraries but nothing is selected");
return;
}