Fixed issue #247. Individual measurement file 'Where save measurements' dialog
doesn't open directory from Preferences. --HG-- branch : develop
This commit is contained in:
parent
614b57a5f2
commit
48c5e6ad94
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue
Block a user