mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #507, checks if URLs / DBus can be connected / reached
* new class CFailoverUrlList * improved utility methods * CDBusServer: utility function to check server / DBus can be connected * check in swift GUI if DBus is available
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b24cd2e9c7
commit
6dd8fb333e
@@ -81,6 +81,11 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser,
|
||||
{
|
||||
QString v(parser.value(dBusOption).trimmed());
|
||||
dBusAddress = CDBusServer::fixAddressToDBusAddress(v);
|
||||
if (!CDBusServer::isDBusAvailable(dBusAddress))
|
||||
{
|
||||
errorMessage = "DBus server at " + dBusAddress + " can not be reached";
|
||||
return CommandLineError;
|
||||
}
|
||||
}
|
||||
|
||||
if (parser.isSet(windowOption))
|
||||
|
||||
Reference in New Issue
Block a user