Skip to content

Commit

Permalink
Bug Fix Calculator example not raising it's window on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
itay-grudev committed Feb 2, 2017
1 parent 4841681 commit 8892a54
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/calculator/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 8892a54

Please sign in to comment.