Commit b2076ca7 authored by Tobias Hunger's avatar Tobias Hunger Committed by Tobias Hunger
Browse files

ShellCommandPage: Handle reject



Change-Id: I310b55a4832c169df68d5fd13311bba66dbd973f
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 52d6c091
......@@ -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;
......
......@@ -62,6 +62,8 @@ public:
void terminate();
bool handleReject();
signals:
void finished(bool success);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment