Fixed issue #247. Individual measurement file 'Where save measurements' dialog

doesn't open directory from Preferences.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-02-17 23:34:32 +02:00
parent 614b57a5f2
commit 48c5e6ad94

View File

@ -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";