Skip to content

Commit

Permalink
Use single application exec
Browse files Browse the repository at this point in the history
  • Loading branch information
pljones committed Oct 15, 2023
1 parent e16bd48 commit 2f0d43a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -962,15 +962,12 @@ int main ( int argc, char** argv )

// show dialog
ClientDlg.show();
pApp->exec();
}
else
# endif
{
// only start application without using the GUI
qInfo() << qUtf8Printable ( GetVersionAndNameStr ( false ) );

pApp->exec();
}
}
else
Expand Down Expand Up @@ -1027,8 +1024,6 @@ int main ( int argc, char** argv )
{
ServerDlg.show();
}

pApp->exec();
}
else
#endif
Expand All @@ -1042,10 +1037,10 @@ int main ( int argc, char** argv )
{
Server.SetDirectoryType ( AT_CUSTOM );
}

pApp->exec();
}
}

pApp->exec();
}

catch ( const CGenErr& generr )
Expand Down

0 comments on commit 2f0d43a

Please sign in to comment.