summaryrefslogtreecommitdiff
path: root/src/executableslist.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-07-19 02:47:13 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-22 07:36:38 -0400
commite071dfdfaa369a475a2d93df623c1696feee56ba (patch)
tree4e3f1714558f6ac46f010b1cae561a96c1195c03 /src/executableslist.cpp
parentaae6d6a5aa8d6b101fcc38388222a8a6e7ee2ec6 (diff)
changed qCritical() to log::error()
removed now unused vlog()
Diffstat (limited to 'src/executableslist.cpp')
-rw-r--r--src/executableslist.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/executableslist.cpp b/src/executableslist.cpp
index fbb96bd4..2408e8f3 100644
--- a/src/executableslist.cpp
+++ b/src/executableslist.cpp
@@ -243,9 +243,9 @@ void ExecutablesList::setExecutable(const Executable &exe, SetFlags flags)
if (flags == MoveExisting) {
const auto newTitle = makeNonConflictingTitle(exe.title());
if (!newTitle) {
- qCritical().nospace()
- << "executable '" << exe.title() << "' was in the way but could "
- << "not be renamed";
+ log::error(
+ "executable '{}' was in the way but could not be renamed",
+ exe.title());
return;
}
@@ -289,9 +289,7 @@ std::optional<QString> ExecutablesList::makeNonConflictingTitle(
title = prefix + QString(" (%1)").arg(i);
}
- qCritical().nospace()
- << "ran out of executable titles for prefix '" << prefix << "'";
-
+ log::error("ran out of executable titles for prefix '{}'", prefix);
return {};
}