diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 348ca1722..9ecde7bd2 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -1179,6 +1179,9 @@ bool Application::event(QEvent* event) #endif if (event->type() == QEvent::FileOpen) { + if (!m_mainWindow) { + showMainWindow(false); + } auto ev = static_cast(event); m_mainWindow->processURLs({ ev->url() }); } @@ -1312,6 +1315,9 @@ void Application::messageReceived(const QByteArray& message) qWarning() << "Received" << command << "message without a zip path/URL."; return; } + if (!m_mainWindow) { + showMainWindow(false); + } m_mainWindow->processURLs({ normalizeImportUrl(url) }); } else if (command == "launch") { QString id = received.args["id"];