It seems that at least in this occasion, the signal blocking requires
the UI element to be given.

Signed-off-by: Miika Turkia <[email protected]>
---
 qt-ui/divelogimportdialog.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index 0aa6f90..0f060b3 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);
-- 
1.9.1

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to