diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2024-10-30 15:20:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 15:20:04 +0100 |
| commit | f42a9f1cef66907086edaa7bb005d434758f6326 (patch) | |
| tree | 1bebb9088cc7faa61ebcb1ffb2f19c64acbd143d | |
| parent | 61ef16d08d315830ac9d7147749bb5c1486a427f (diff) | |
Fix error message showing even though instance is already selected (#2154)
| -rw-r--r-- | src/moapplication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/moapplication.cpp b/src/moapplication.cpp index f06a85d1..cac60f48 100644 --- a/src/moapplication.cpp +++ b/src/moapplication.cpp @@ -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); |
