Cppcheck warning.

(grafted from e3934b5f00ac3777865d665625ee3add0390cd99)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-07-24 20:28:51 +03:00
parent 2400555d05
commit ea4301ea3f

View file

@ -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;