Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Commit

Permalink
WithCommandLineArguments: use autoQuitDelay
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinDuquesnoy committed Dec 2, 2017
1 parent 011c486 commit 8c85019
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ WithCommandLineArguments::WithCommandLineArguments(IApplication& application,
void WithCommandLineArguments::initialize()
{
commandLineArguments_.parse();

if (commandLineArguments_.autoQuitDelay() != 0)
QTimer::singleShot(commandLineArguments_.autoQuitDelay(), [&]() { application_.quit(); } );

ApplicationDecorator::initialize();
}

0 comments on commit 8c85019

Please sign in to comment.