diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 620c07ca8..d2483cd60 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -184,9 +184,9 @@ MainWindow::MainWindow(QWidget *parent) connect(watcher, &QFileSystemWatcher::fileChanged, this, &MainWindow::MeasurementsChanged); connect(qApp, &QApplication::focusChanged, this, [this](QWidget *old, QWidget *now) { - static bool asking = false; if (old == nullptr && isAncestorOf(now) == true) {// focus IN + static bool asking = false; if (not asking && mChanges && not mChangesAsked) { asking = true;