From 0b8dff223482706367938b4efc60a4ae75f035f0 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Mon, 22 Jan 2024 19:56:51 -0800 Subject: [PATCH] fix stop and run job to update pause/resume --- src/jobs/abstractjob.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jobs/abstractjob.cpp b/src/jobs/abstractjob.cpp index d317cabc67..0c2af86877 100644 --- a/src/jobs/abstractjob.cpp +++ b/src/jobs/abstractjob.cpp @@ -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() @@ -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()