diff --git a/src/texstudio.cpp b/src/texstudio.cpp index e32044eb7..bad5d45af 100644 --- a/src/texstudio.cpp +++ b/src/texstudio.cpp @@ -1403,8 +1403,10 @@ void Texstudio::setupMenus() } } - newManagedAction(menu, "enlargePDF", tr("Show embedded PDF large"), SLOT(enlargeEmbeddedPDFViewer()))->setVisible(false); - newManagedAction(menu, "shrinkPDF", tr("Show embedded PDF small"), SLOT(shrinkEmbeddedPDFViewer()))->setVisible(false); + act=newManagedAction(menu, "enlargePDF", tr("Show embedded PDF large"), SLOT(enlargeEmbeddedPDFViewer())); + act->setVisible(false); + act=newManagedAction(menu, "shrinkPDF", tr("Show embedded PDF small"), SLOT(shrinkEmbeddedPDFViewer())); + act->setVisible(false); newManagedAction(menu, "closeelement", tr("Close Element"), SLOT(viewCloseElement()), Qt::Key_Escape); menu->addSeparator();