kdelibs/kdelibs-4.4.0-krunner-crash...

16 lines
468 B
Diff

Index: plasma/runnercontext.cpp
===================================================================
--- plasma/runnercontext.cpp (Revision 1090801)
+++ plasma/runnercontext.cpp (Revision 1090802)
@@ -128,6 +128,10 @@
components.pop_back();
}
+ if (components.isEmpty()) {
+ return true;
+ }
+
QString correctPath;
const unsigned initialComponents = components.size();
for (unsigned i = 0; i < initialComponents - 1; i ++) {