committed by
Kacper Donat
parent
bee89d0447
commit
75b2ef67fc
@@ -61,13 +61,13 @@ bool TaskProjection::accept()
|
||||
{
|
||||
Gui::Document* document = Gui::Application::Instance->activeDocument();
|
||||
if (!document) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), tr("No active document"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), tr("No Active Document"),
|
||||
tr("There is currently no active document to complete the operation"));
|
||||
return true;
|
||||
}
|
||||
std::list<Gui::MDIView*> mdis = document->getMDIViewsOfType(Gui::View3DInventor::getClassTypeId());
|
||||
if (mdis.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), tr("No active view"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), tr("No Active View"),
|
||||
tr("There is currently no active view to complete the operation"));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user