summaryrefslogtreecommitdiffstats
path: root/qt-ui/csvimportdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/csvimportdialog.cpp')
-rw-r--r--qt-ui/csvimportdialog.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/qt-ui/csvimportdialog.cpp b/qt-ui/csvimportdialog.cpp
index 5ae4036f5..caafe3562 100644
--- a/qt-ui/csvimportdialog.cpp
+++ b/qt-ui/csvimportdialog.cpp
@@ -24,6 +24,10 @@ CSVImportDialog::CSVImportDialog(QWidget *parent) :
ui->CSVSeparator->addItem("Tab");
ui->knownImports->setCurrentIndex(1);
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
+
+ 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)));
}
CSVImportDialog::~CSVImportDialog()
@@ -73,17 +77,7 @@ void CSVImportDialog::on_knownImports_currentIndexChanged(int index)
ui->CSVTemperature->blockSignals(false);
}
-void CSVImportDialog::on_CSVTime_valueChanged(int arg1)
-{
- unknownImports();
-}
-
-void CSVImportDialog::on_CSVDepth_valueChanged(int arg1)
-{
- unknownImports();
-}
-
-void CSVImportDialog::on_CSVTemperature_valueChanged(int arg1)
+void CSVImportDialog::unknownImports(int arg1)
{
unknownImports();
}