File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff 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'?" )
You can’t perform that action at this time.
0 commit comments