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