|
|
@ -347,7 +347,7 @@ int UBApplication::exec(const QString& pFileToImport) |
|
|
|
applicationController->initScreenLayout(bUseMultiScreen); |
|
|
|
applicationController->initScreenLayout(bUseMultiScreen); |
|
|
|
boardController->setupLayout(); |
|
|
|
boardController->setupLayout(); |
|
|
|
|
|
|
|
|
|
|
|
if (pFileToImport.length() > 0) |
|
|
|
if (pFileToImport.length() > 0 && !pFileToImport.endsWith("ubx")) |
|
|
|
UBApplication::applicationController->importFile(pFileToImport); |
|
|
|
UBApplication::applicationController->importFile(pFileToImport); |
|
|
|
|
|
|
|
|
|
|
|
if (UBSettings::settings()->appStartMode->get().toInt()) |
|
|
|
if (UBSettings::settings()->appStartMode->get().toInt()) |
|
|
@ -575,7 +575,10 @@ bool UBApplication::eventFilter(QObject *obj, QEvent *event) |
|
|
|
|
|
|
|
|
|
|
|
UBPlatformUtils::setFrontProcess(); |
|
|
|
UBPlatformUtils::setFrontProcess(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!fileToOpenEvent->file().endsWith("ubx")) |
|
|
|
applicationController->importFile(fileToOpenEvent->file()); |
|
|
|
applicationController->importFile(fileToOpenEvent->file()); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
applicationController->showMessage(tr("Cannot open your UBX file directly. Please import it in Documents mode instead"), false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (event->type() == QEvent::TabletLeaveProximity) |
|
|
|
if (event->type() == QEvent::TabletLeaveProximity) |
|
|
|