ShellCommandPage: Handle reject

Change-Id: I310b55a4832c169df68d5fd13311bba66dbd973f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2015-05-05 16:39:28 +02:00
committed by Tobias Hunger
parent 52d6c09183
commit b2076ca71e
2 changed files with 11 additions and 0 deletions

View File

@@ -151,6 +151,15 @@ void ShellCommandPage::terminate()
m_command->cancel();
}
bool ShellCommandPage::handleReject()
{
if (!isRunning())
return false;
terminate();
return true;
}
bool ShellCommandPage::isComplete() const
{
return m_state == Succeeded;