Cppcheck warning.
(grafted from e3934b5f00ac3777865d665625ee3add0390cd99) --HG-- branch : develop
This commit is contained in:
parent
2400555d05
commit
ea4301ea3f
|
@ -184,9 +184,9 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
connect(watcher, &QFileSystemWatcher::fileChanged, this, &MainWindow::MeasurementsChanged);
|
connect(watcher, &QFileSystemWatcher::fileChanged, this, &MainWindow::MeasurementsChanged);
|
||||||
connect(qApp, &QApplication::focusChanged, this, [this](QWidget *old, QWidget *now)
|
connect(qApp, &QApplication::focusChanged, this, [this](QWidget *old, QWidget *now)
|
||||||
{
|
{
|
||||||
static bool asking = false;
|
|
||||||
if (old == nullptr && isAncestorOf(now) == true)
|
if (old == nullptr && isAncestorOf(now) == true)
|
||||||
{// focus IN
|
{// focus IN
|
||||||
|
static bool asking = false;
|
||||||
if (not asking && mChanges && not mChangesAsked)
|
if (not asking && mChanges && not mChangesAsked)
|
||||||
{
|
{
|
||||||
asking = true;
|
asking = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user