From 57003f9b97fbe9042fc1b55fbdca13647c258a92 Mon Sep 17 00:00:00 2001 From: Matthias Kuehlewein Date: Sun, 18 Sep 2022 13:11:52 +0200 Subject: [PATCH] PointSymbolEditorWidget: Fix 'Line closed' checkmark When the 'Line closed' checkmark was set and all lines were removed the checkbox remained set but became disabled. --- src/gui/symbols/point_symbol_editor_widget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/symbols/point_symbol_editor_widget.cpp b/src/gui/symbols/point_symbol_editor_widget.cpp index 066910f29..b3d343b19 100644 --- a/src/gui/symbols/point_symbol_editor_widget.cpp +++ b/src/gui/symbols/point_symbol_editor_widget.cpp @@ -847,7 +847,12 @@ void PointSymbolEditorWidget::updateCoordsTable() if (num_rows > 0 && path->parts().front().isClosed()) --num_rows; if (path->getSymbol()->getType() == Symbol::Line) + { + line_closed_check->blockSignals(true); + line_closed_check->setChecked(num_rows > 0 && path->parts().front().isClosed()); line_closed_check->setEnabled(num_rows > 0); + line_closed_check->blockSignals(false); + } } coords_table->setRowCount(num_rows);