summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Rodrigo Severo <rodrigo@fabricadeideias.com>2014-01-14 15:58:20 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-15 05:56:34 +0700
commit349f3e9cdef4b05fa6bfd3171f59339fb18fe1d1 (patch)
treea3744f05872b715afec0789472d2880c5e5843a9 /qt-ui/divelogimportdialog.cpp
parent3a3d61ba5332144ce226f59a9d79927e411de0a7 (diff)
downloadsubsurface-349f3e9cdef4b05fa6bfd3171f59339fb18fe1d1.tar.gz
More CSV import fixes
Pre-configured imports in Import Dive Log File for CSV files should also be cleared when the field separator is changed by the user. Promoted DiveLogImportDialog::unknownImports to slot as per Canabrava's suggestion and Hohndel's request. Signed-off-by: Rodrigo Severo <rodrigo@fabricadeideias.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogimportdialog.cpp')
-rw-r--r--qt-ui/divelogimportdialog.cpp31
1 files changed, 11 insertions, 20 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index 2a7166a98..79349027d 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -27,16 +27,17 @@ DiveLogImportDialog::DiveLogImportDialog(QStringList *fn, QWidget *parent) :
ui->CSVSeparator->addItem(";");
ui->knownImports->setCurrentIndex(1);
- connect(ui->CSVDepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int)));
- connect(ui->CSVTime, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int)));
- connect(ui->CSVTemperature, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int)));
- connect(ui->temperatureCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool)));
- connect(ui->CSVpo2, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int)));
- connect(ui->po2CheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool)));
- connect(ui->CSVcns, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int)));
- connect(ui->cnsCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool)));
- connect(ui->CSVstopdepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int)));
- connect(ui->stopdepthCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool)));
+ connect(ui->CSVDepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports()));
+ connect(ui->CSVTime, SIGNAL(valueChanged(int)), this, SLOT(unknownImports()));
+ connect(ui->CSVTemperature, SIGNAL(valueChanged(int)), this, SLOT(unknownImports()));
+ connect(ui->temperatureCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports()));
+ connect(ui->CSVpo2, SIGNAL(valueChanged(int)), this, SLOT(unknownImports()));
+ connect(ui->po2CheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports()));
+ connect(ui->CSVcns, SIGNAL(valueChanged(int)), this, SLOT(unknownImports()));
+ connect(ui->cnsCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports()));
+ connect(ui->CSVstopdepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports()));
+ connect(ui->stopdepthCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports()));
+ connect(ui->CSVSeparator, SIGNAL(currentIndexChanged(int)), this, SLOT(unknownImports()));
}
DiveLogImportDialog::~DiveLogImportDialog()
@@ -97,16 +98,6 @@ void DiveLogImportDialog::on_knownImports_currentIndexChanged(int index)
ui->CSVSeparator->blockSignals(false);
}
-void DiveLogImportDialog::unknownImports(bool arg1)
-{
- unknownImports();
-}
-
-void DiveLogImportDialog::unknownImports(int arg1)
-{
- unknownImports();
-}
-
void DiveLogImportDialog::unknownImports()
{
ui->knownImports->setCurrentIndex(0);