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 6c703e122a
commit 84c742404d
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(" "))));
}