From f13f5e21c42b3b5bdfdc4fcab50e10abd92c8486 Mon Sep 17 00:00:00 2001
From: isanae <14251494+isanae@users.noreply.github.com>
Date: Fri, 19 Jul 2019 00:11:43 -0400
Subject: replaced qInfo() with log::info()
---
src/modinfo.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 'src/modinfo.cpp')
diff --git a/src/modinfo.cpp b/src/modinfo.cpp
index 3484b644..92c7366c 100644
--- a/src/modinfo.cpp
+++ b/src/modinfo.cpp
@@ -37,6 +37,7 @@ along with Mod Organizer. If not, see .
#include
#include
#include
+#include
#include
#include
@@ -322,10 +323,9 @@ bool ModInfo::checkAllForUpdate(PluginContainer *pluginContainer, QObject *recei
qWarning() << tr("All of your mods have been checked recently. We restrict update checks to help preserve your available API requests.");
updatesAvailable = false;
} else {
- qInfo() << tr(
+ log::info("{}", tr(
"You have mods that haven't been checked within the last month using the new API. These mods must be checked before we can use the bulk update API. "
- "This will consume significantly more API requests than usual. You will need to rerun the update check once complete in order to parse the remaining mods."
- );
+ "This will consume significantly more API requests than usual. You will need to rerun the update check once complete in order to parse the remaining mods."));
}
for (auto game : organizedGames)
@@ -412,7 +412,7 @@ void ModInfo::manualUpdateCheck(PluginContainer *pluginContainer, QObject *recei
});
if (mods.size()) {
- qInfo("Checking updates for %d mods...", mods.size());
+ log::info("Checking updates for {} mods...", mods.size());
for (auto mod : mods) {
organizedGames.insert(std::make_pair(mod->getGameName().toLower(), mod->getNexusID()));
@@ -422,7 +422,7 @@ void ModInfo::manualUpdateCheck(PluginContainer *pluginContainer, QObject *recei
NexusInterface::instance(pluginContainer)->requestUpdates(game.second, receiver, QVariant(), game.first, QString());
}
} else {
- qInfo("None of the selected mods can be updated.");
+ log::info("None of the selected mods can be updated.");
}
}
--
cgit v1.3.1
From aae6d6a5aa8d6b101fcc38388222a8a6e7ee2ec6 Mon Sep 17 00:00:00 2001
From: isanae <14251494+isanae@users.noreply.github.com>
Date: Fri, 19 Jul 2019 01:09:19 -0400
Subject: replaced qWarning()
---
src/bbcode.cpp | 9 ++++----
src/categories.cpp | 3 ++-
src/directoryrefresher.cpp | 4 ++--
src/downloadmanager.cpp | 21 +++++++++---------
src/editexecutablesdialog.cpp | 19 ++++++++--------
src/executableslist.cpp | 6 +++---
src/filerenamer.cpp | 7 ++++--
src/icondelegate.cpp | 4 +++-
src/installationmanager.cpp | 2 +-
src/instancemanager.cpp | 14 +++++++-----
src/mainwindow.cpp | 50 +++++++++++++++++++++++--------------------
src/moapplication.cpp | 5 +++--
src/modflagicondelegate.cpp | 4 +++-
src/modinfo.cpp | 2 +-
src/modinfodialogesps.cpp | 7 +++---
src/modlist.cpp | 7 +++---
src/modlistsortproxy.cpp | 6 ++++--
src/nexusinterface.cpp | 27 +++++++++++++----------
src/nxmaccessmanager.cpp | 2 +-
src/organizercore.cpp | 46 +++++++++++++++++++--------------------
src/plugincontainer.cpp | 11 +++++-----
src/pluginlist.cpp | 4 ++--
src/problemsdialog.cpp | 2 +-
src/profile.cpp | 21 ++++++++++--------
src/profilesdialog.cpp | 4 ++--
src/settings.cpp | 5 +++--
26 files changed, 161 insertions(+), 131 deletions(-)
(limited to 'src/modinfo.cpp')
diff --git a/src/bbcode.cpp b/src/bbcode.cpp
index 323dd128..d9b7debd 100644
--- a/src/bbcode.cpp
+++ b/src/bbcode.cpp
@@ -18,13 +18,13 @@ along with Mod Organizer. If not, see .
*/
#include "bbcode.h"
-
+#include
#include
#include