Skip to content

Commit 4c6ab68

Browse files
committed
Adjust #ifdef block
1 parent 6b154c5 commit 4c6ab68

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/main.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -597,20 +597,19 @@ int main ( int argc, char** argv )
597597
bUseGUI = false;
598598
qWarning() << "No GUI support compiled. Running in headless mode.";
599599
}
600-
#endif
601600

602-
if ( bIsClient )
601+
#endif
603602
#ifdef SERVER_ONLY
603+
if ( bIsClient )
604604
{
605605
qCritical() << "Only --server mode is supported in this build.";
606606
exit ( 1 );
607607
}
608-
#else
609-
610-
// TODO create settings in default state, if loading from file do that next, then come back here to
611-
// override from command line options, then create client or server, letting them do the validation
612608

609+
#else
610+
if ( bIsClient )
613611
{
612+
614613
if ( ServerOnlyOptions.size() != 0 )
615614
{
616615
qCritical() << qUtf8Printable ( QString ( "%1: Server only option(s) '%2' used. Did you omit '--server'?" )

0 commit comments

Comments
 (0)