[PATCH] Check url in KDirModelPrivate::nodeForUrl()

Aurélien Gâteau aurelien.gateau at free.fr
Wed Jul 18 13:31:52 BST 2007


Hello,

If you call KDirModel::itemForUrl(url) with an invalid url, an assert fails
in KDirModelPrivate::nodeForUrl(). Attached patch fixes this by returning
an invalid index instead. Is it the correct behavior? Is it ok to commit?

Aurélien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdirmodel_check_url.diff
Type: text/x-diff
Size: 575 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070718/d8661ffe/attachment.diff>


More information about the kde-core-devel mailing list