Check if command string is empty in ExternalCommand::start

This commit is contained in:
Caio Carvalho 2018-08-16 23:32:33 +02:00
parent 58a11262f7
commit 22e857a072
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ bool ExternalCommand::start(int timeout)
{
Q_UNUSED(timeout)
if (command().isEmpty())
return false;
if (report()) {
report()->setCommand(xi18nc("@info:status", "Command: %1 %2", command(), args().join(QStringLiteral(" "))));
}