Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -151,6 +151,15 @@ void ShellCommandPage::terminate() ...@@ -151,6 +151,15 @@ void ShellCommandPage::terminate()
m_command->cancel(); m_command->cancel();
} }
bool ShellCommandPage::handleReject()
{
if (!isRunning())
return false;
terminate();
return true;
}
bool ShellCommandPage::isComplete() const bool ShellCommandPage::isComplete() const
{ {
return m_state == Succeeded; return m_state == Succeeded;
......
...@@ -62,6 +62,8 @@ public: ...@@ -62,6 +62,8 @@ public:
void terminate(); void terminate();
bool handleReject();
signals: signals:
void finished(bool success); void finished(bool success);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment