diff --git a/src/main.cpp b/src/main.cpp index 723ff6e..92fb494 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -71,7 +71,7 @@ int main ( int argc, char *argv[] ) core.broadcastNotification(n); int returnCode = -1; - app.connect(&core, &SnoreCore::notificationClosed, [&returnCode,&parser](Notification noti){ + app.connect(&core, &SnoreCore::notificationClosed, [&](Notification noti){ if(!parser.isSet(silent)) { QString reason;