From: prascle Date: Tue, 18 Dec 2012 16:31:00 +0000 (+0000) Subject: PR: On Qt4.8 the emit layoutAboutToBeChanged() signal solves a crash when renaming... X-Git-Tag: V6_main_FINAL~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2da2ee909d086824024ed50d9c5084650777e99f;p=modules%2Fgui.git 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. --- 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 );