Skip to content

Commit

Permalink
fix crash on Export > Stop Capture
Browse files Browse the repository at this point in the history
regression in 272f880
  • Loading branch information
ddennedy committed Jan 20, 2025
1 parent c0c6933 commit 3116a70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jobs/abstractjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ AbstractJob::AbstractJob(const QString &name, QThread::Priority priority)

connect(m_actionPause, &QAction::triggered, this, &AbstractJob::pause);
connect(m_actionResume, &QAction::triggered, this, &AbstractJob::resume);
connect(this, &AbstractJob::finished, this, [this]() {
m_actionPause->setEnabled(false);
m_actionResume->setEnabled(false);
});
}

void AbstractJob::start()
Expand Down Expand Up @@ -209,8 +213,6 @@ void AbstractJob::onFinished(int exitCode, QProcess::ExitStatus exitStatus)
m_log.append(QStringLiteral("Failed with exit code %1\n").arg(exitCode));
emit finished(this, false);
}
m_actionPause->setEnabled(false);
m_actionResume->setEnabled(false);
m_isPaused = false;
}

Expand Down

0 comments on commit 3116a70

Please sign in to comment.