summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-08-15 12:37:19 +0200
committerTannin <devnull@localhost>2015-08-15 12:37:19 +0200
commitea1c2b46fe0feb2ee7e027b6513b2f83c82720a5 (patch)
tree68db003b60e668b45f186fa8e27a2c12f7e193d9 /src/mainwindow.cpp
parent821f95b8ab259f89f379c10e533c42476c56d361 (diff)
parent89f3c0d65a79fdc9230e5a0acfdc5454238460cd (diff)
Merge
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index a0a56406..f0f944a8 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2827,6 +2827,8 @@ void MainWindow::checkModsForUpdates()
m_OrganizerCore.doAfterLogin([this] () { this->checkModsForUpdates(); });
NexusInterface::instance()->getAccessManager()->login(username, password);
} else { // otherwise there will be no endorsement info
+ MessageDialog::showMessage(tr("Not logged in, endorsement information will be wrong"),
+ this, true);
m_ModsToUpdate = ModInfo::checkAllForUpdate(this);
}
}
@@ -4322,7 +4324,7 @@ void MainWindow::processLOOTOut(const std::string &lootOut, std::string &errorMe
std::tr1::regex exRequires("\"([^\"]*)\" requires \"([^\"]*)\", but it is missing\\.");
std::tr1::regex exIncompatible("\"([^\"]*)\" is incompatible with \"([^\"]*)\", but both are present\\.");
- foreach (const std::string &line, lines) {
+ for (const std::string &line : lines) {
if (line.length() > 0) {
size_t progidx = line.find("[progress]");
size_t erroridx = line.find("[error]");