diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index a9b524598..85fcf100a 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -4151,7 +4151,7 @@ void ViewProviderSketch::attach(App::DocumentObject *pcFeat) void ViewProviderSketch::setupContextMenu(QMenu *menu, QObject *receiver, const char *member) { - menu->addAction(QObject::tr("Edit sketch"), receiver, member); + menu->addAction(tr("Edit sketch"), receiver, member); } bool ViewProviderSketch::setEdit(int ModNum) @@ -4165,8 +4165,8 @@ bool ViewProviderSketch::setEdit(int ModNum) sketchDlg = 0; // another sketch left open its task panel if (dlg && !sketchDlg) { QMessageBox msgBox; - msgBox.setText(QObject::tr("A dialog is already open in the task panel")); - msgBox.setInformativeText(QObject::tr("Do you want to close this dialog?")); + msgBox.setText(tr("A dialog is already open in the task panel")); + msgBox.setInformativeText(tr("Do you want to close this dialog?")); msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); msgBox.setDefaultButton(QMessageBox::Yes); int ret = msgBox.exec();