You meant to do: if(!command.getArguments().isEmpty())
Or you could also write it as:
QString url = command.getArguments();
if (url.isEmpty())
  url = defaultURL_;