kdelibs/kdelibs-4.0.4-kdirmodel-crash.patch
2008-05-27 17:15:57 +00:00

12 lines
631 B
Diff

--- kdelibs/kio/kio/kdirmodel.cpp 2008/05/27 15:27:46 813403
+++ kdelibs/kio/kio/kdirmodel.cpp 2008/05/27 15:27:57 813404
@@ -184,7 +184,7 @@
return qMakePair(row, *it);
}
// This used to be urlStr.startsWith(u.url()+'/'), but KUrl::url() is a slow operation.
- if ( pathStr.startsWith(u.path()+'/') ) {
+ if ( (url.protocol() == u.protocol()) && (pathStr.startsWith(u.path()+'/')) ) {
//kDebug(7008) << "going into " << node->item().url();
Q_ASSERT( isDir(*it) );
dirNode = static_cast<KDirModelDirNode *>( *it );