Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
This commit is contained in:
Ryan Cao 2022-10-22 23:47:53 +08:00
parent 1a8de111a3
commit f35a30d371
No known key found for this signature in database

View File

@ -943,15 +943,14 @@ bool Application::event(QEvent* event) {
emit clickedOnDock();
}
m_prevAppState = ev->applicationState();
return true;
}
#endif
if (event->type() == QEvent::FileOpen) {
auto ev = static_cast<QFileOpenEvent*>(event);
m_mainWindow->droppedURLs({ ev->url() });
return true;
}
#endif
return QApplication::event(event);
}