Alert user about finished creating a layout.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-12-03 10:56:19 +02:00
parent 33087b2fe8
commit 1a0733ad00

View File

@ -134,10 +134,18 @@ bool MainWindowsNoGUI::LayoutSettings(VLayoutGenerator& lGenerator)
margins = lGenerator.GetFields(); margins = lGenerator.GetFields();
paperSize = QSizeF(lGenerator.GetPaperWidth(), lGenerator.GetPaperHeight()); paperSize = QSizeF(lGenerator.GetPaperWidth(), lGenerator.GetPaperHeight());
isLayoutStale = false; isLayoutStale = false;
if (VApplication::CheckGUI())
{
QApplication::alert(this);
}
break; break;
case LayoutErrors::ProcessStoped: case LayoutErrors::ProcessStoped:
case LayoutErrors::PrepareLayoutError: case LayoutErrors::PrepareLayoutError:
case LayoutErrors::EmptyPaperError: case LayoutErrors::EmptyPaperError:
if (VApplication::CheckGUI())
{
QApplication::alert(this);
}
return false; return false;
default: default:
break; break;