mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
cleanup application file event handler
This commit is contained in:
parent
1f2020d169
commit
b77a3f4904
1 changed files with 1 additions and 4 deletions
|
@ -810,10 +810,7 @@ bool Application::event(QEvent* event) {
|
|||
// handle custom URL
|
||||
if (event->type() == QEvent::FileOpen) {
|
||||
QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event);
|
||||
bool isHifiSchemeURL = !fileEvent->url().isEmpty() && fileEvent->url().toLocalFile().startsWith(HIFI_URL_SCHEME);
|
||||
if (isHifiSchemeURL) {
|
||||
AddressManager::getInstance().handleLookupString(fileEvent->url().toLocalFile());
|
||||
}
|
||||
AddressManager::getInstance().handleLookupString(fileEvent->url().toLocalFile());
|
||||
return false;
|
||||
}
|
||||
return QApplication::event(event);
|
||||
|
|
Loading…
Reference in a new issue