Fix crash in KDirOperator::Private::_k_slotExpandToUrl(...)
author Frank Reininghaus
()
committer Frank Reininghaus
()
commit dd4ff99421fc0aa96d74bc616e64137c11862f20
tree 0aed571d18256d14e5cdd5765c06f26b9eace6ef
parent 8d885c97b483b21ee13b6bf9539a1cb7e529102a
Fix crash in KDirOperator::Private::_k_slotExpandToUrl(...)

When entering '/' in the 'Name' line of the file open dialog, pressing
backspace and then pasting 'a/b', where a is a subfolder of the current
folder and b a file in that folder, KDirOperator may crash because it
accesses a null KFileItem. This commit fixes the crash. Unit test
included.
BUG: 187066
FIXED-IN: 4.6.4
(cherry picked from commit 8b5c38c8d9fae85e002fae9f325277b5b200d44d)
kfile/kdiroperator.cpp
kfile/tests/kdiroperatortest.cpp