+ use correct context for translatable strings in ViewProviderSketch
This commit is contained in:
parent
4208b0840d
commit
051ad564d1
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user