diff --git a/doc/ChangeLog b/doc/ChangeLog index 5b86aeed8..a5f062b5d 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,5 +1,10 @@ 2011-01-22 vadim + * ObjectManipulator.cpp (contextMenuRequested): context menu item + that opens object in the editor should be named "Inspect" when the + object is read-only because the editor would not allow the user to + change it. + * ObjectManipulator.cpp (contextMenuRequested): fixed #1926 "Crash when moving object in Standard library". Context menu item "Move" should be disabled when the object is located in diff --git a/src/libgui/ObjectManipulator.cpp b/src/libgui/ObjectManipulator.cpp index cd3f186ba..067241775 100644 --- a/src/libgui/ObjectManipulator.cpp +++ b/src/libgui/ObjectManipulator.cpp @@ -372,8 +372,14 @@ void ObjectManipulator::contextMenuRequested(const QPoint &pos) popup_menu->clear(); - QAction *edtID = - popup_menu->addAction(tr("Edit"), this, SLOT( editSelectedObject())); + QAction *edtID; + + if (currentObj->isReadOnly()) + edtID = popup_menu->addAction(tr("Inspect"), + this, SLOT( editSelectedObject())); + else + edtID = popup_menu->addAction(tr("Edit"), + this, SLOT( editSelectedObject())); if (RuleSet::cast(currentObj)) popup_menu->addAction(tr("Open"), this, SLOT( openSelectedRuleSet()));