1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-12-28 16:45:31 +02:00

Drop the 'remove link' option on the context menu of OPKs

This commit is contained in:
Paul Cercueil 2012-10-23 06:45:56 +02:00
parent 64eb86f8e8
commit df981eb03a

View File

@ -1023,7 +1023,11 @@ void GMenu2X::contextMenu() {
{
MenuOption opt = {tr.translate("Edit $1",menu->selLink()->getTitle().c_str(),NULL), MakeDelegate(this, &GMenu2X::editLink)};
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)};
voices.push_back(opt);
}