Call autosave only in GUI mode.
This commit is contained in:
parent
d280f6a2bb
commit
a1d4ea13c4
|
@ -1,5 +1,6 @@
|
||||||
# Valentina 0.7.50 (unreleased)
|
# Valentina 0.7.50 (unreleased)
|
||||||
- Fix regression. Minimal seam allowance width is less than the point accuracy values.
|
- Fix regression. Minimal seam allowance width is less than the point accuracy values.
|
||||||
|
- Call autosave only in GUI mode.
|
||||||
|
|
||||||
# Valentina 0.7.49 July 1, 2021
|
# Valentina 0.7.49 July 1, 2021
|
||||||
- Fix crash.
|
- Fix crash.
|
||||||
|
|
|
@ -4372,7 +4372,8 @@ bool MainWindow::SavePattern(const QString &fileName, QString &error)
|
||||||
*/
|
*/
|
||||||
void MainWindow::AutoSavePattern()
|
void MainWindow::AutoSavePattern()
|
||||||
{
|
{
|
||||||
if (not VAbstractValApplication::VApp()->GetPatternPath().isEmpty() && isWindowModified() && isNeedAutosave)
|
if (VApplication::VApp()->IsGUIMode() && not VAbstractValApplication::VApp()->GetPatternPath().isEmpty()
|
||||||
|
&& isWindowModified() && isNeedAutosave)
|
||||||
{
|
{
|
||||||
qCDebug(vMainWindow, "Autosaving pattern.");
|
qCDebug(vMainWindow, "Autosaving pattern.");
|
||||||
QString error;
|
QString error;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user