diff --git a/NEWS.md b/NEWS.md index 266186e36..c78c16792 100644 --- a/NEWS.md +++ b/NEWS.md @@ -11,6 +11,9 @@ element is not found within the first LOAS/LATM frame, `mkvmerge` will no longer discard the frames before it but defer parsing them until after it has found the `AudioSpecificConfig` element. Fixes #3727. +* MKVToolNix GUI: job queue: fixed the GUI crashing when re-ordering the jobs + in the job queue. This regression was introduced while fixing #3720. Fixes + #3729. ## Build system changes diff --git a/src/mkvtoolnix-gui/jobs/model.cpp b/src/mkvtoolnix-gui/jobs/model.cpp index 15478ace1..28df60936 100644 --- a/src/mkvtoolnix-gui/jobs/model.cpp +++ b/src/mkvtoolnix-gui/jobs/model.cpp @@ -145,7 +145,8 @@ Model::selectedJobs(QAbstractItemView *view) { uint64_t Model::idFromRow(int row) const { - return item(row)->data(Util::JobIdRole).value(); + auto itm = item(row); + return itm ? itm->data(Util::JobIdRole).value() : 0; } int