-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126060/
-----------------------------------------------------------

Review request for Plasma and Sebastian Kügler.


Bugs: 355290
    https://bugs.kde.org/show_bug.cgi?id=355290


Repository: plasma-workspace


Description
-------

Code crashes when calling dirNames.last(), since dirNames itself is empty when 
path is "/".

Add a condition to check if dirNames is empty and return right away.


Diffs
-----

  runners/locations/locationrunner.cpp cc12965 

Diff: https://git.reviewboard.kde.org/r/126060/diff/


Testing
-------

No more crash.


Thanks,

Xuetian Weng

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to