+ use correct context for translatable strings in ViewProviderSketch

This commit is contained in:
wmayer 2015-10-17 15:21:37 +02:00
parent 4208b0840d
commit 051ad564d1

View File

@ -4151,7 +4151,7 @@ void ViewProviderSketch::attach(App::DocumentObject *pcFeat)
void ViewProviderSketch::setupContextMenu(QMenu *menu, QObject *receiver, const char *member) 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) bool ViewProviderSketch::setEdit(int ModNum)
@ -4165,8 +4165,8 @@ bool ViewProviderSketch::setEdit(int ModNum)
sketchDlg = 0; // another sketch left open its task panel sketchDlg = 0; // another sketch left open its task panel
if (dlg && !sketchDlg) { if (dlg && !sketchDlg) {
QMessageBox msgBox; QMessageBox msgBox;
msgBox.setText(QObject::tr("A dialog is already open in the task panel")); msgBox.setText(tr("A dialog is already open in the task panel"));
msgBox.setInformativeText(QObject::tr("Do you want to close this dialog?")); msgBox.setInformativeText(tr("Do you want to close this dialog?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::Yes); msgBox.setDefaultButton(QMessageBox::Yes);
int ret = msgBox.exec(); int ret = msgBox.exec();