From 3cf90958997daccf7882cb5f921a1de915e932ee Mon Sep 17 00:00:00 2001 From: joshua Date: Mon, 20 Oct 2025 23:31:48 +0200 Subject: [PATCH] refactor[diagram editor] close bug. Close bug report #324 https://qelectrotech.org/bugtracker/view.php?id=324 See commit #1b671990ee8435616725afdffba438fdfcd18069 --- sources/ui/dynamicelementtextitemeditor.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/sources/ui/dynamicelementtextitemeditor.cpp b/sources/ui/dynamicelementtextitemeditor.cpp index 709da077b..9aee0f3c1 100644 --- a/sources/ui/dynamicelementtextitemeditor.cpp +++ b/sources/ui/dynamicelementtextitemeditor.cpp @@ -146,7 +146,6 @@ void DynamicElementTextItemEditor::setCurrentText(DynamicElementTextItem *text) return; ui->m_tree_view->expand(index); -// ui->m_tree_view->expand(index.QModelIndex::model()->index(0,0)); // commented by plc-user: leads to crash, when other textitem was selected before ui->m_tree_view->setCurrentIndex(index); ui->m_remove_selection->setEnabled(true); }