mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Minor : avoid unnecessary multiple function call
TerminalStripTreeDockWidget::on_m_tree_view_currentItemChanged call setCurrentStrip only when current strip changed, and not every time when user click in another item on the tree view.
This commit is contained in:
@@ -182,7 +182,10 @@ void TerminalStripTreeDockWidget::on_m_tree_view_currentItemChanged(QTreeWidgetI
|
|||||||
&& current->parent()->type() == TerminalStripTreeWidget::Strip) {
|
&& current->parent()->type() == TerminalStripTreeWidget::Strip) {
|
||||||
strip_ = m_item_strip_H.value(current->parent());
|
strip_ = m_item_strip_H.value(current->parent());
|
||||||
}
|
}
|
||||||
setCurrentStrip(strip_);
|
|
||||||
|
if (strip_ != m_current_strip) {
|
||||||
|
setCurrentStrip(strip_);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user