[qet] [4364] New element panel, fix crash |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4364
Author: blacksun
Date: 2016-02-29 21:18:17 +0100 (Mon, 29 Feb 2016)
Log Message:
-----------
New element panel, fix crash
Modified Paths:
--------------
trunk/sources/ElementsCollection/elementscollectionwidget.cpp
Modified: trunk/sources/ElementsCollection/elementscollectionwidget.cpp
===================================================================
--- trunk/sources/ElementsCollection/elementscollectionwidget.cpp 2016-02-28 18:54:49 UTC (rev 4363)
+++ trunk/sources/ElementsCollection/elementscollectionwidget.cpp 2016-02-29 20:18:17 UTC (rev 4364)
@@ -432,6 +432,8 @@
}
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();