Fix krunner crash when open "/"

Review Request #126060 - Created Nov. 13, 2015 and submitted

Information
Xuetian Weng
plasma-workspace
master
355290
Reviewers
plasma
sebas

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.

No more crash.

David Edmundson
Xuetian Weng
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 0ab0823d8cd192f67a431174fa02b8975adc8987 by Weng Xuetian to branch master.
Loading...