mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
6c82578540
commit
b8d02b4b27
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue