mirror of
https://github.com/overte-org/overte.git
synced 2025-07-10 15:58:31 +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
|
// handle custom URL
|
||||||
if (event->type() == QEvent::FileOpen) {
|
if (event->type() == QEvent::FileOpen) {
|
||||||
QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event);
|
QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event);
|
||||||
bool isHifiSchemeURL = !fileEvent->url().isEmpty() && fileEvent->url().toLocalFile().startsWith(HIFI_URL_SCHEME);
|
AddressManager::getInstance().handleLookupString(fileEvent->url().toLocalFile());
|
||||||
if (isHifiSchemeURL) {
|
|
||||||
AddressManager::getInstance().handleLookupString(fileEvent->url().toLocalFile());
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return QApplication::event(event);
|
return QApplication::event(event);
|
||||||
|
|
Loading…
Reference in a new issue