From b8d02b4b27a6225aaacb1a9cf43f162053185290 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sat, 24 Jan 2015 17:03:14 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui/divelogimportdialog.cpp') 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); -- cgit v1.2.3-70-g09d2