Disallows renaming to names containing '/' names being equal to "." or "..".
Review Request #101454 - Created May 27, 2011 and submitted
So far this works only for the RenameDialog as I could not find the method that changes the name when inline renaming is enabled. If you could tell me where that method is I would in fact adapt the patch.
If "Rename Inline" is enabled, DolphinView::renameSelectedItems() calls m_viewAccessor.itemView()->edit(proxyIndex), which then opens the editor in KFileItemDelegate. When the editing is done, KFileItemDelegate::setModelData(...) is called, which calls KDirModel::setData(...), where the actual file renaming is triggered. Maybe the check could be done there, but you might want to ask David Faure about that.
Thanks for the patch! > I could not find the method that changes the name when inline renaming is enabled. > If you could tell me where that method is I would in fact adapt the patch. The inline renaming is done inside KDirModel::setData() (kdelibs/kio/kio/kdirmodel.cpp). It would be great if you could adjust this code part too...
Review request changed