]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PR: On Qt4.8 the emit layoutAboutToBeChanged() signal solves a crash when renaming...
authorprascle <prascle>
Tue, 18 Dec 2012 16:31:00 +0000 (16:31 +0000)
committerprascle <prascle>
Tue, 18 Dec 2012 16:31:00 +0000 (16:31 +0000)
src/SUIT/SUIT_TreeModel.cxx

index 53c9a94ba94ebca5eafcb0722fe757acce19fc85..4b3c8a77608ffdbda166a231300b45ec624e5e31 100755 (executable)
@@ -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 );