summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-01-24 17:03:14 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-24 14:50:36 -0800
commitb8d02b4b27a6225aaacb1a9cf43f162053185290 (patch)
tree677539e7380b4c47fea837e50987b4b164545ddf
parent6c825785401ea3e450795db8887eba9444c9b7b5 (diff)
downloadsubsurface-b8d02b4b27a6225aaacb1a9cf43f162053185290.tar.gz
Block the signals properly
It seems that at least in this occasion, the signal blocking requires the UI element to be given. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/divelogimportdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index 0aa6f90de..0f060b3ee 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -443,9 +443,9 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy)
separator = CSVApps[value].separator;
if (ui->CSVSeparator->currentText() != separator || separator == "Tab") {
- blockSignals(true);
+ ui->CSVSeparator->blockSignals(true);
ui->CSVSeparator->setCurrentText(separator);
- blockSignals(false);
+ ui->CSVSeparator->blockSignals(false);
if (separator == "Tab")
separator = "\t";
currColumns = firstLine.split(separator);