From 3416278da4a2931dd77553d7a2d63137e7a9973f Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Tue, 30 Dec 2014 17:02:42 +0200 Subject: Allow unit selection on known CSV import Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 2 -- xslt/subsurfacecsv.xslt | 63 ++++++++++++++++++++++++++++++++++++++----- 2 files changed, 56 insertions(+), 9 deletions(-) diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 5c2a04434..b79d33c43 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -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; diff --git a/xslt/subsurfacecsv.xslt b/xslt/subsurfacecsv.xslt index ec6e871e4..6820208e7 100644 --- a/xslt/subsurfacecsv.xslt +++ b/xslt/subsurfacecsv.xslt @@ -124,12 +124,26 @@ - + + + + + + + + - + + + + + + + + @@ -149,12 +163,26 @@ - + + + + + + + + - + + + + + + + + @@ -197,12 +225,26 @@ - + + + + + + + + - + + + + + + + + @@ -297,7 +339,14 @@ - + + + + + + + + -- cgit v1.2.3-70-g09d2