From 793292fbf828e382a9c05e8d0e0be5437d819772 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 16 Aug 2022 16:19:29 +0300 Subject: [PATCH] Fix build. --- src/app/tape/tmainwindow.cpp | 2 +- src/app/valentina/core/vapplication.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index e2c29df55..fde56f3f2 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -3437,7 +3437,7 @@ void TMainWindow::UpdateWindowTitle() static QIcon fileIcon = QIcon(QCoreApplication::applicationDirPath() + QLatin1String("/../Resources/measurements.icns")); QIcon icon; - if (not curFile.isEmpty()) + if (not m_curFile.isEmpty()) { if (not isWindowModified()) { diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index 593dbd1e4..f8df14551 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -53,6 +53,12 @@ #include #include +#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0) +#include "../vmisc/backport/qscopeguard.h" +#else +#include +#endif + QT_WARNING_PUSH QT_WARNING_DISABLE_CLANG("-Wmissing-prototypes") QT_WARNING_DISABLE_INTEL(1418)