mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Update the URL on the local KFileItem copy or else subsequent rename operations
fail horribly.
This commit is contained in:
parent
fc3073b8e6
commit
5e627957cc
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue