mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 00:20:38 +02:00
Drop the 'remove link' option on the context menu of OPKs
This commit is contained in:
parent
64eb86f8e8
commit
df981eb03a
@ -1023,7 +1023,11 @@ void GMenu2X::contextMenu() {
|
|||||||
{
|
{
|
||||||
MenuOption opt = {tr.translate("Edit $1",menu->selLink()->getTitle().c_str(),NULL), MakeDelegate(this, &GMenu2X::editLink)};
|
MenuOption opt = {tr.translate("Edit $1",menu->selLink()->getTitle().c_str(),NULL), MakeDelegate(this, &GMenu2X::editLink)};
|
||||||
voices.push_back(opt);
|
voices.push_back(opt);
|
||||||
}{
|
}
|
||||||
|
#ifdef HAVE_LIBOPK
|
||||||
|
if (!menu->selLinkApp()->isOpk())
|
||||||
|
#endif
|
||||||
|
{
|
||||||
MenuOption opt = {tr.translate("Delete $1 link",menu->selLink()->getTitle().c_str(),NULL), MakeDelegate(this, &GMenu2X::deleteLink)};
|
MenuOption opt = {tr.translate("Delete $1 link",menu->selLink()->getTitle().c_str(),NULL), MakeDelegate(this, &GMenu2X::deleteLink)};
|
||||||
voices.push_back(opt);
|
voices.push_back(opt);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user