also avoid leading newlines

This commit is contained in:
donovaly
2020-07-26 21:05:47 +02:00
committed by WandererFan
parent d7ee728be3
commit e727cd3754
3 changed files with 3 additions and 3 deletions

View File

@@ -226,7 +226,7 @@ bool ViewProviderPage::onDelete(const std::vector<std::string> &)
bodyMessageStream << '\n';
for (auto ObjIterator : objs)
bodyMessageStream << '\n' << QString::fromUtf8(ObjIterator->Label.getValue());
bodyMessageStream << QObject::tr("\n\nAre you sure you want to continue?");
bodyMessageStream << "\n\n" << QObject::tr("Are you sure you want to continue?");
// show and evaluate the dialog
int DialogResult = QMessageBox::warning(Gui::getMainWindow(),
qApp->translate("Std_Delete", "Object dependencies"), bodyMessage,

View File

@@ -211,7 +211,7 @@ bool ViewProviderProjGroup::onDelete(const std::vector<std::string> &)
bodyMessageStream << '\n';
for (auto ObjIterator : objs)
bodyMessageStream << '\n' << QString::fromUtf8(ObjIterator->Label.getValue());
bodyMessageStream << QObject::tr("\n\nAre you sure you want to continue?");
bodyMessageStream << "\n\n" << QObject::tr("Are you sure you want to continue?");
// show and evaluate dialog
int DialogResult = QMessageBox::warning(Gui::getMainWindow(),
qApp->translate("Std_Delete", "Object dependencies"), bodyMessage,

View File

@@ -197,7 +197,7 @@ bool ViewProviderTemplate::onDelete(const std::vector<std::string> &)
bodyMessageStream << qApp->translate("Std_Delete",
"The following referencing object might break:");
bodyMessageStream << "\n\n" << QString::fromUtf8(page->Label.getValue());
bodyMessageStream << QObject::tr("\n\nAre you sure you want to continue?");
bodyMessageStream << "\n\n" << QObject::tr("Are you sure you want to continue?");
// show and evaluate dialog
int DialogResult = QMessageBox::warning(Gui::getMainWindow(),