Remove return from JavascriptCommand finish

This commit is contained in:
David Tengdin and Matthew Horan 2013-02-26 14:48:15 -05:00
parent 60a8300821
commit 7d21f140cd
1 changed files with 5 additions and 4 deletions

View File

@ -7,8 +7,9 @@ JavascriptCommand::JavascriptCommand(WebPageManager *manager, QStringList &argum
void JavascriptCommand::finish(InvocationResult *result) {
if (result->hasError())
return SocketCommand::finish(false, result->errorMessage());
QString message = result->result().toString();
SocketCommand::finish(true, message);
SocketCommand::finish(false, result->errorMessage());
else {
QString message = result->result().toString();
SocketCommand::finish(true, message);
}
}