Skip to content

Commit

Permalink
fix stop and run job to update pause/resume
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Jan 23, 2024
1 parent 9ececa9 commit 0b8dff2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jobs/abstractjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ void AbstractJob::start(const QString &program, const QStringList &arguments)
#endif
QProcess::start(prog, args);
AbstractJob::start();
m_actionPause->setEnabled(true);
m_actionResume->setEnabled(false);
}

void AbstractJob::stop()
Expand All @@ -142,6 +144,8 @@ void AbstractJob::stop()
terminate();
QTimer::singleShot(2000, this, SLOT(kill()));
m_killed = true;
m_actionPause->setEnabled(false);
m_actionResume->setEnabled(false);
}

void AbstractJob::pause()
Expand Down

0 comments on commit 0b8dff2

Please sign in to comment.