summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-07-19 01:09:19 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-22 07:34:53 -0400
commitaae6d6a5aa8d6b101fcc38388222a8a6e7ee2ec6 (patch)
tree0550b5896c9f929342d3b5fd534f17f21a7fd579 /src/modlist.cpp
parentf13f5e21c42b3b5bdfdc4fcab50e10abd92c8486 (diff)
replaced qWarning()
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index 7b71355c..df25df0d 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -275,7 +275,7 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const
return QString();
}
} else {
- qWarning("category %d doesn't exist (may have been removed)", category);
+ log::warn("category {} doesn't exist (may have been removed)", category);
modInfo->setCategory(category, false);
return QString();
}
@@ -618,8 +618,9 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role)
result = true;
} break;
default: {
- qWarning("edit on column \"%s\" not supported",
- getColumnName(index.column()).toUtf8().constData());
+ log::warn(
+ "edit on column \"{}\" not supported",
+ getColumnName(index.column()).toUtf8().constData());
result = false;
} break;
}