Check on reader to avoid redundant error messages

This commit is contained in:
Klaus Basan
2017-04-02 23:07:07 +02:00
committed by Mathew Sutcliffe
parent 6863bf2937
commit a22631777d
3 changed files with 12 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ int main(int argc, char *argv[])
a.setSignalStartupAutomatically(false); // application will signal startup on its own
a.splashScreen(CIcons::swift256());
if (!a.parse()) { return EXIT_FAILURE; }
if (!a.start())
if (!a.hasSetupReader() || !a.start())
{
a.gracefulShutdown();
return EXIT_FAILURE;