Fixed issues #348 and #349

--HG--
branch : develop
This commit is contained in:
val177 2015-09-05 11:59:31 +03:00
parent 00e98b8913
commit 6a63ac7999

View File

@ -1032,8 +1032,8 @@ void MainWindow::PrepareSceneList()
void MainWindow::LoadIndividual() void MainWindow::LoadIndividual()
{ {
const QString filter = tr("Individual measurements (*.vit);;Standard measurements (*.vst)"); const QString filter = tr("Individual measurements (*.vit);;Standard measurements (*.vst)");
//Use standard path to standard measurements //Use standard path to individual measurements
const QString path = qApp->ValentinaSettings()->GetPathStandardMeasurements(); const QString path = qApp->ValentinaSettings()->GetPathIndividualMeasurements();
const QString mPath = QFileDialog::getOpenFileName(this, tr("Open file"), path, filter); const QString mPath = QFileDialog::getOpenFileName(this, tr("Open file"), path, filter);
if (not mPath.isEmpty()) if (not mPath.isEmpty())
@ -1058,8 +1058,8 @@ void MainWindow::LoadIndividual()
void MainWindow::LoadStandard() void MainWindow::LoadStandard()
{ {
const QString filter = tr("Individual measurements (*.vit);;Standard measurements (*.vst)"); const QString filter = tr("Individual measurements (*.vit);;Standard measurements (*.vst)");
//Use standard path to individual measurements //Use standard path to standard measurements
const QString path = qApp->ValentinaSettings()->GetPathIndividualMeasurements(); const QString path = qApp->ValentinaSettings()->GetPathStandardMeasurements();
const QString mPath = QFileDialog::getOpenFileName(this, tr("Open file"), path, filter); const QString mPath = QFileDialog::getOpenFileName(this, tr("Open file"), path, filter);
if (not mPath.isEmpty()) if (not mPath.isEmpty())