diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-11-05 11:17:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 11:17:21 +0100 |
commit | 4af22d663accee5253275b2bb6f4723c24440a96 (patch) | |
tree | 3fa0587cfe7eaade41c0687aee88a915c3ab15fb /launcher | |
parent | ba8322aa5cd082b9785869582bbce73a624988e0 (diff) | |
parent | f8ea6212c73bc420e9a1c328d2510f32adde4acf (diff) | |
download | PrismLauncher-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.cpp | 6 |
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); } |