diff --git a/examples/calculator/main.cpp b/examples/calculator/main.cpp index 7d8708b..32d8811 100644 --- a/examples/calculator/main.cpp +++ b/examples/calculator/main.cpp @@ -60,12 +60,10 @@ int main(int argc, char *argv[]) Calculator calc; - QObject::connect( - &app, - &SingleApplication::instanceStarted, - &calc, - &Calculator::raise - ); + QObject::connect( &app, &SingleApplication::instanceStarted, [ &calc ]() { + calc.raise(); + calc.activateWindow(); + }); calc.show();