Update the URL on the local KFileItem copy or else subsequent rename operations

fail horribly.
This commit is contained in:
Dawit Alemayehu 2012-02-20 07:08:16 -05:00
parent fc3073b8e6
commit 5e627957cc

View file

@ -308,5 +308,8 @@ void KonqSidebarDirTreeItem::rename()
void KonqSidebarDirTreeItem::rename( const QString & name )
{
KonqOperations::rename( tree(), m_fileItem.url(), name );
KUrl url (m_fileItem.url());
KonqOperations::rename( tree(), url, name );
url.setPath( url.directory( KUrl::AppendTrailingSlash ) + name );
m_fileItem.setUrl(url);
}