Warn about stale layout only in GUI mode.
This commit is contained in:
parent
a1d4ea13c4
commit
7043d59858
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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{};
|
||||
|
|
Loading…
Reference in New Issue
Block a user