From 48c5e6ad94b27dd1f031ca1a5e82a464e65eefe5 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 17 Feb 2015 23:34:32 +0200 Subject: [PATCH] Fixed issue #247. Individual measurement file 'Where save measurements' dialog doesn't open directory from Preferences. --HG-- branch : develop --- src/app/dialogs/app/dialogindividualmeasurements.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/dialogs/app/dialogindividualmeasurements.cpp b/src/app/dialogs/app/dialogindividualmeasurements.cpp index f85925557..2b6257867 100644 --- a/src/app/dialogs/app/dialogindividualmeasurements.cpp +++ b/src/app/dialogs/app/dialogindividualmeasurements.cpp @@ -229,7 +229,7 @@ void DialogIndividualMeasurements::OpenTable() //--------------------------------------------------------------------------------------------------------------------- void DialogIndividualMeasurements::NewTable() { - QString dir = QDir::homePath()+"/measurements.vit"; + const QString dir = qApp->getSettings()->GetPathIndividualMeasurements()+"/measurements.vit"; QString name = QFileDialog::getSaveFileName(this, tr("Where save measurements?"), dir, tr("Individual measurements (*.vit)")); @@ -239,7 +239,7 @@ void DialogIndividualMeasurements::NewTable() } // what if the users did not specify a suffix...? - QFileInfo f( name ); + const QFileInfo f( name ); if (f.suffix().isEmpty() && f.suffix() != "vit") { name += ".vit";