mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-22 03:07:20 +01:00
call context menu item "Inspect" instead of "Edit" when object is read-only
This commit is contained in:
parent
36831643af
commit
5ca7d180e3
@ -1,5 +1,10 @@
|
||||
2011-01-22 vadim <vadim@netcitadel.com>
|
||||
|
||||
* 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
|
||||
|
||||
@ -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()));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user