Check if command string is empty in ExternalCommand::start
This commit is contained in:
parent
6c703e122a
commit
84c742404d
|
@ -121,6 +121,9 @@ bool ExternalCommand::start(int timeout)
|
||||||
{
|
{
|
||||||
Q_UNUSED(timeout)
|
Q_UNUSED(timeout)
|
||||||
|
|
||||||
|
if (command().isEmpty())
|
||||||
|
return false;
|
||||||
|
|
||||||
if (report()) {
|
if (report()) {
|
||||||
report()->setCommand(xi18nc("@info:status", "Command: %1 %2", command(), args().join(QStringLiteral(" "))));
|
report()->setCommand(xi18nc("@info:status", "Command: %1 %2", command(), args().join(QStringLiteral(" "))));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue