diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index c5048dde3d..bb5a8ab258 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -691,9 +691,8 @@ private: bool pressed_; bool started_; public: - KeyChecker() { - pressed_ = false; - } + KeyChecker() : pressed_(false), started_(false) {} + void start() { QCoreApplication::instance()->installEventFilter(this); pressed_ = false;