Skip to content

Commit

Permalink
Fix error message showing even though instance is already selected (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanFeenstra authored Oct 30, 2024
1 parent 61ef16d commit f42a9f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/moapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ void MOApplication::externalMessage(const QString& message)
}
}
} else if (isNxmLink(message)) {
if (InstanceManager::singleton().currentInstance()->gamePlugin() == nullptr) {
if (m_core == nullptr) {
// This can happen if MO2 is started with the --pick option and no instance has
// been selected yet, in which case m_core will be null.
// been selected yet.
reportError(tr("You need to select an instance before trying to download mods."));
} else {
MessageDialog::showMessage(tr("Download started"), qApp->activeWindow(), false);
Expand Down

0 comments on commit f42a9f1

Please sign in to comment.