Optimization. Call creation toolbar only if was not uploaded any measurements.
--HG-- branch : develop
This commit is contained in:
parent
f600a00db8
commit
3aa1ccaea4
|
@ -3485,8 +3485,11 @@ bool MainWindow::LoadPattern(const QString &fileName, const QString& customMeasu
|
|||
}
|
||||
}
|
||||
|
||||
if (qApp->patternType() == MeasurementsType::Unknown)
|
||||
{// Show toolbar only if was not uploaded any measurements.
|
||||
ToolBarOption();
|
||||
}
|
||||
}
|
||||
catch (VException &e)
|
||||
{
|
||||
qCCritical(vMainWindow, "%s\n\n%s\n\n%s", qUtf8Printable(tr("File error.")),
|
||||
|
|
|
@ -47,7 +47,7 @@ VAbstractApplication::VAbstractApplication(int &argc, char **argv)
|
|||
appTranslator(nullptr),
|
||||
pmsTranslator(nullptr),
|
||||
_patternUnit(Unit::Cm),
|
||||
_patternType(MeasurementsType::Individual),
|
||||
_patternType(MeasurementsType::Unknown),
|
||||
currentScene(nullptr),
|
||||
sceneView(nullptr),
|
||||
doc(nullptr),
|
||||
|
|
Loading…
Reference in New Issue
Block a user