Skip to content

Fix potential crash when enqueueing from empty files view

Jack Hill requested to merge jackh/elisa:bug/crash-files-enqueue-empty into master

Reason for the change

If the current folder is empty, then mPendingEntries will be empty. Calling front on an empty queue is undefined behaviour, and can result in a crash.

Test plan

  • Added an autotest

Bugs fixed

BUG: 441525

CCBUG: 484972

Edited by Jack Hill

Merge request reports

Loading