diff options
| author | Itay Grudev <itay@grudev.com> | 2017-02-02 04:35:05 +0000 | 
|---|---|---|
| committer | Itay Grudev <itay@grudev.com> | 2017-02-02 04:35:05 +0000 | 
| commit | 8892a54e12266b995462a7022b01e7cc92a2752b (patch) | |
| tree | 1f2b97767f4e810e092f318b6f2edbee78c20a99 | |
| parent | Reverted GetUserName API usage on Windows (#25) (diff) | |
| download | singleapplication-8892a54e12266b995462a7022b01e7cc92a2752b.tar.xz | |
Bug Fix Calculator example not raising it's window on Windows
| -rw-r--r-- | examples/calculator/main.cpp | 10 | 
1 files changed, 4 insertions, 6 deletions
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();
  | 
