@@ -446,9 +446,7 @@ int main ( int argc, char** argv )
446446 if ( GetNumericArgument ( argc, argv, i, " -u" , " --numchannels" , 1 , MAX_NUM_CHANNELS, rDbleArgument ) )
447447 {
448448 iNumServerChannels = static_cast <int > ( rDbleArgument );
449-
450449 qInfo () << qUtf8Printable ( QString ( " - maximum number of channels: %1" ).arg ( iNumServerChannels ) );
451-
452450 CommandLineOptions << " --numchannels" ;
453451 ServerOnlyOptions << " --numchannels" ;
454452 continue ;
@@ -639,6 +637,7 @@ int main ( int argc, char** argv )
639637 else
640638#endif
641639 {
640+
642641 if ( ClientOnlyOptions.size () != 0 )
643642 {
644643 qCritical () << qUtf8Printable (
@@ -786,12 +785,10 @@ int main ( int argc, char** argv )
786785 strServerBindIP = " " ;
787786 }
788787 }
789-
790788#ifndef NO_JSON_RPC
791- //
789+
792790 // strJsonRpcBind address defaults to loopback and should not be empty, but
793791 // in the odd chance that an empty IP is passed, we'll check for it here.
794-
795792 if ( strJsonRpcBindIP.trimmed ().isEmpty () )
796793 {
797794 qCritical () << qUtf8Printable ( QString ( " JSON-RPC is enabled but the bind address provided is empty, exiting." ) );
@@ -809,7 +806,6 @@ int main ( int argc, char** argv )
809806 exit ( 1 );
810807 }
811808 }
812-
813809#endif
814810 }
815811
@@ -967,6 +963,7 @@ int main ( int argc, char** argv )
967963
968964 // show dialog
969965 ClientDlg.show ();
966+
970967 pApp->exec ();
971968 }
972969 else
@@ -1009,8 +1006,8 @@ int main ( int argc, char** argv )
10091006 {
10101007 new CServerRpc ( &Server, pRpcServer, pRpcServer );
10111008 }
1012- #endif
10131009
1010+ #endif
10141011#ifndef HEADLESS
10151012 if ( bUseGUI )
10161013 {
0 commit comments