From 2da2ee909d086824024ed50d9c5084650777e99f Mon Sep 17 00:00:00 2001 From: prascle Date: Tue, 18 Dec 2012 16:31:00 +0000 Subject: [PATCH] PR: On Qt4.8 the emit layoutAboutToBeChanged() signal solves a crash when renaming an object browser entry from pyhello. The signal was commented previously to fix crash on delete objects, but the related issue 22424 is not accessible. --- src/SUIT/SUIT_TreeModel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SUIT/SUIT_TreeModel.cxx b/src/SUIT/SUIT_TreeModel.cxx index 53c9a94ba..4b3c8a776 100755 --- a/src/SUIT/SUIT_TreeModel.cxx +++ b/src/SUIT/SUIT_TreeModel.cxx @@ -1592,7 +1592,7 @@ void SUIT_TreeModel::updateItem( SUIT_TreeModel::TreeItem* item, bool emitLayout return; // update all columns corresponding to the given data object - //emit layoutAboutToBeChanged(); // VSR 25/04/2011: fix crash on delete objects + emit layoutAboutToBeChanged(); // Comment by VSR 25/04/2011: fix crash on delete objects. Uncomment by PRascle 18/12/2012 : required by Qt4.8 (original issue 22424 not accessible) QModelIndex firstIdx = index( obj, 0 ); QModelIndex lastIdx = index( obj, columnCount() - 1 ); emit dataChanged( firstIdx, lastIdx ); -- 2.39.2