Instead of indexes save and set string values.
--HG-- branch : develop
This commit is contained in:
parent
0c3fcfb14e
commit
1e5def1361
|
@ -1192,15 +1192,15 @@ void MainWindow::LoadStandard()
|
||||||
|
|
||||||
if (not mPath.isEmpty())
|
if (not mPath.isEmpty())
|
||||||
{
|
{
|
||||||
int hIndex = -1;
|
QString hText;
|
||||||
if (not gradationHeights.isNull())
|
if (not gradationHeights.isNull())
|
||||||
{
|
{
|
||||||
hIndex = gradationHeights->currentIndex();
|
hText = gradationHeights->currentText();
|
||||||
}
|
}
|
||||||
int sIndex = -1;
|
QString sText;
|
||||||
if (not gradationSizes.isNull())
|
if (not gradationSizes.isNull())
|
||||||
{
|
{
|
||||||
sIndex = gradationSizes->currentIndex();
|
sText = gradationSizes->currentText();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(LoadMeasurements(mPath))
|
if(LoadMeasurements(mPath))
|
||||||
|
@ -1221,14 +1221,14 @@ void MainWindow::LoadStandard()
|
||||||
|
|
||||||
if (qApp->patternType() == MeasurementsType::Standard)
|
if (qApp->patternType() == MeasurementsType::Standard)
|
||||||
{
|
{
|
||||||
if (hIndex != -1 && not gradationSizes.isNull())
|
if (not hText.isEmpty() && not gradationSizes.isNull())
|
||||||
{
|
{
|
||||||
gradationHeights->setCurrentIndex(hIndex);
|
gradationHeights->setCurrentText(hText);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sIndex != -1 && not gradationSizes.isNull())
|
if (not sText.isEmpty() && not gradationSizes.isNull())
|
||||||
{
|
{
|
||||||
gradationSizes->setCurrentIndex(sIndex);
|
gradationSizes->setCurrentText(sText);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user