Warn about stale layout only in GUI mode.

This commit is contained in:
Roman Telezhynskyi 2021-07-09 15:38:53 +03:00
parent a1d4ea13c4
commit 7043d59858
3 changed files with 19 additions and 13 deletions

View File

@ -1,6 +1,7 @@
# Valentina 0.7.50 (unreleased)
- Fix regression. Minimal seam allowance width is less than the point accuracy values.
- Call autosave only in GUI mode.
- Warn about stale layout only in GUI mode.
# Valentina 0.7.49 July 1, 2021
- Fix crash.

View File

@ -743,6 +743,8 @@ auto VPrintLayout::WatermarkData() const -> VWatermarkData
//---------------------------------------------------------------------------------------------------------------------
auto VPrintLayout::ContinueIfLayoutStale(QWidget *parent) -> int
{
if (VAbstractApplication::VApp()->IsAppInGUIMode())
{
QMessageBox msgBox(parent);
msgBox.setIcon(QMessageBox::Question);
@ -757,3 +759,6 @@ auto VPrintLayout::ContinueIfLayoutStale(QWidget *parent) -> int
layout->addItem(horizontalSpacer, layout->rowCount(), 0, 1, layout->columnCount());
return msgBox.exec();
}
return QMessageBox::Yes;
}

View File

@ -138,7 +138,7 @@ private:
bool m_isAutoCropWidth{false};
bool m_isUnitePages{false};
QString m_layoutPrinterName{};
bool m_isLayoutStale{true};
bool m_isLayoutStale{false};
QMarginsF m_tiledMargins{};
PageOrientation m_tiledPDFOrientation{PageOrientation::Portrait};
QSizeF m_tiledPDFPaperSize{};