mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
GUI: watch jobs: disable "acknowledge" button if no unacknowledged exist
Fixes #1802.
This commit is contained in:
parent
5116098773
commit
8045bd2191
@ -1,3 +1,10 @@
|
||||
2016-11-07 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* MKVToolNix GUI: job output tool bug fix: the button for
|
||||
acknowledging warnings & errors wasn't properly disabled when the
|
||||
user used outside methods of acknowledging them (e.g. via the menu
|
||||
or via the job queue). Fixes #1802.
|
||||
|
||||
2016-10-31 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvmerge: MPLS parser bug fix: fixed reading the "in" & "out"
|
||||
|
@ -105,6 +105,7 @@ Tab::setupUi() {
|
||||
connect(d->m_saveOutputAction, &QAction::triggered, this, &Tab::onSaveOutput);
|
||||
connect(d->m_clearOutputAction, &QAction::triggered, this, &Tab::clearOutput);
|
||||
connect(d->m_openFolderAction, &QAction::triggered, this, &Tab::openFolder);
|
||||
connect(MainWindow::jobTool()->model(), &Jobs::Model::numUnacknowledgedWarningsOrErrorsChanged, this, &Tab::disableButtonIfAllWarningsAndErrorsButtonAcknowledged);
|
||||
}
|
||||
|
||||
void
|
||||
@ -376,6 +377,15 @@ Tab::setInitialDisplay(Jobs::Job const &job) {
|
||||
updateRemainingTime();
|
||||
}
|
||||
|
||||
void
|
||||
Tab::disableButtonIfAllWarningsAndErrorsButtonAcknowledged(int numWarnings,
|
||||
int numErrors) {
|
||||
Q_D(Tab);
|
||||
|
||||
if (!numWarnings && !numErrors)
|
||||
d->ui->acknowledgeWarningsAndErrorsButton->setEnabled(false);
|
||||
}
|
||||
|
||||
void
|
||||
Tab::onSaveOutput() {
|
||||
Q_D(Tab);
|
||||
|
@ -60,6 +60,7 @@ public slots:
|
||||
void openFolder();
|
||||
|
||||
void acknowledgeWarningsAndErrors();
|
||||
void disableButtonIfAllWarningsAndErrorsButtonAcknowledged(int numWarnings, int numErrors);
|
||||
|
||||
void updateRemainingTime();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user