]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for renaming: launch renaming only in column #1
authorvsv <vsv@opencascade.com>
Fri, 30 Nov 2018 09:17:13 +0000 (12:17 +0300)
committervsv <vsv@opencascade.com>
Fri, 30 Nov 2018 09:17:34 +0000 (12:17 +0300)
src/XGUI/XGUI_ObjectsBrowser.cpp

index 7f28e6f4166be884baaf00b4d2ef19e185d1fbd0..1862244a5c0a463866ca13a9a063089d063c399f 100644 (file)
@@ -489,10 +489,12 @@ void XGUI_ObjectsBrowser::onEditItem()
       // Find index which corresponds the feature
       QModelIndex aIndex;
       foreach(QModelIndex aIdx, selectedIndexes()) {
-        ObjectPtr aFea = dataModel()->object(aIdx);
-        if (dataModel()->object(aIdx)->isSame(anObject)) {
-          aIndex = aIdx;
-          break;
+        if (aIdx.column() == 1) {
+          ObjectPtr aFea = dataModel()->object(aIdx);
+          if (dataModel()->object(aIdx)->isSame(anObject)) {
+            aIndex = aIdx;
+            break;
+          }
         }
       }
       if (aIndex.isValid()) {