|
|
@ -357,8 +357,13 @@ int UBApplication::exec(const QString& pFileToImport) |
|
|
|
applicationController->initScreenLayout(bUseMultiScreen); |
|
|
|
applicationController->initScreenLayout(bUseMultiScreen); |
|
|
|
boardController->setupLayout(); |
|
|
|
boardController->setupLayout(); |
|
|
|
|
|
|
|
|
|
|
|
if (pFileToImport.length() > 0 && !pFileToImport.endsWith("ubx")) |
|
|
|
if (pFileToImport.length() > 0) |
|
|
|
UBApplication::applicationController->importFile(pFileToImport); |
|
|
|
{ |
|
|
|
|
|
|
|
if (!pFileToImport.endsWith("ubx")) |
|
|
|
|
|
|
|
applicationController->importFile(pFileToImport); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
applicationController->showMessage(tr("Cannot open your UBX file directly. Please import it in Documents mode instead"), false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (UBSettings::settings()->appStartMode->get().toInt()) |
|
|
|
if (UBSettings::settings()->appStartMode->get().toInt()) |
|
|
|
applicationController->showDesktop(); |
|
|
|
applicationController->showDesktop(); |
|
|
|