aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-11-05 11:17:21 +0100
committerGitHub <noreply@github.com>2022-11-05 11:17:21 +0100
commit4af22d663accee5253275b2bb6f4723c24440a96 (patch)
tree3fa0587cfe7eaade41c0687aee88a915c3ab15fb /launcher
parentba8322aa5cd082b9785869582bbce73a624988e0 (diff)
parentf8ea6212c73bc420e9a1c328d2510f32adde4acf (diff)
downloadPrismLauncher-4af22d663accee5253275b2bb6f4723c24440a96.tar.gz
PrismLauncher-4af22d663accee5253275b2bb6f4723c24440a96.tar.bz2
PrismLauncher-4af22d663accee5253275b2bb6f4723c24440a96.zip
Merge pull request #229 from ryanccn/macos-drag-n-drop
Diffstat (limited to 'launcher')
-rw-r--r--launcher/Application.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 73a062e1..579942f4 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -925,6 +925,12 @@ bool Application::event(QEvent* event) {
m_prevAppState = ev->applicationState();
}
#endif
+
+ if (event->type() == QEvent::FileOpen) {
+ auto ev = static_cast<QFileOpenEvent*>(event);
+ m_mainWindow->droppedURLs({ ev->url() });
+ }
+
return QApplication::event(event);
}