Allow unit selection on known CSV import

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-12-30 17:02:42 +02:00 committed by Dirk Hohndel
parent 37b8257e09
commit 3416278da4
2 changed files with 56 additions and 9 deletions

View file

@ -162,10 +162,8 @@ void DiveLogImportDialog::on_knownImports_currentIndexChanged(int index)
{
if (specialCSV.contains(index)) {
ui->groupBox_3->setEnabled(false);
ui->CSVUnits->setEnabled(false);
} else {
ui->groupBox_3->setEnabled(true);
ui->CSVUnits->setEnabled(true);
}
if (index == 0)
return;