File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -390,8 +390,14 @@ void MOApplication::externalMessage(const QString& message)
390390 }
391391 }
392392 } else if (isNxmLink (message)) {
393- MessageDialog::showMessage (tr (" Download started" ), qApp->activeWindow (), false );
394- m_core->downloadRequestedNXM (message);
393+ if (InstanceManager::singleton ().currentInstance ()->gamePlugin () == nullptr ) {
394+ // This can happen if MO2 is started with the --pick option and no instance has
395+ // been selected yet, in which case m_core will be null.
396+ reportError (tr (" You need to select an instance before trying to download mods." ));
397+ } else {
398+ MessageDialog::showMessage (tr (" Download started" ), qApp->activeWindow (), false );
399+ m_core->downloadRequestedNXM (message);
400+ }
395401 } else {
396402 cl::CommandLine cl;
397403
You can’t perform that action at this time.
0 commit comments