mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
New element panel, fix crash
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4364 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -432,6 +432,8 @@ void ElementsCollectionWidget::reload()
|
||||
}
|
||||
|
||||
m_tree_view->setModel(new_model);
|
||||
m_index_at_context_menu = QModelIndex();
|
||||
m_showed_index = QModelIndex();
|
||||
if (m_model) delete m_model;
|
||||
m_model = new_model;
|
||||
expandFirstItems();
|
||||
|
||||
Reference in New Issue
Block a user