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>
This commit is contained in:
Miika Turkia 2015-01-24 17:03:14 +02:00 committed by Dirk Hohndel
parent 6c82578540
commit b8d02b4b27

View file

@ -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);