]> cloud.milkyroute.net Git - dolphin.git/commit
Fix crash calling openDirectories() in various cases
authorNate Graham <nate@kde.org>
Tue, 30 Mar 2021 19:30:27 +0000 (13:30 -0600)
committerNate Graham <nate@kde.org>
Wed, 31 Mar 2021 15:19:33 +0000 (09:19 -0600)
commitb9139c5e1c4ccdaad5876da6005f6ac1000ee694
tree0647e1fe2a28f113ce2d42938f5059a6c83aceaf
parent38e83eacf820141944a8f91553103afd31b63676
Fix crash calling openDirectories() in various cases

This can cause a crash when called with a single url and split view, or
when the last URL is not shown, because the iterator gets mutated in
the loop, so we need to make sure it hasn't gone out of bounds. This
check was erroneously removed in 175538020824355115cd98637ce83ecc53badd44
and needs to be brought back.
src/dolphintabwidget.cpp