Summary: | no overwrite option when moving files and directories | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | John Miller <neuromancerx1> |
Component: | general | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | phoenixg |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
John Miller
2004-01-21 01:48:23 UTC
2 weeks old CVS here - there it works. Subject: kdelibs/kio/kio CVS commit by pletourn: Give the choice <Overwrite> when moving files. CCMAIL:73095-done@bugs.kde.org M +3 -1 job.cpp 1.369 --- kdelibs/kio/kio/job.cpp #1.368:1.369 @@ -3064,8 +3064,10 @@ void CopyJob::slotResult( Job *job ) if ( err ) { + bool renaming = ( m_currentSrcURL.directory() == m_dest.directory() ); m_currentSrcURL=*m_currentStatSrc; m_currentDestURL=m_dest; - if ( err == ERR_DIR_ALREADY_EXIST || err == ERR_FILE_ALREADY_EXIST ) + if ( ( err == ERR_DIR_ALREADY_EXIST || err == ERR_FILE_ALREADY_EXIST ) && + renaming ) { if (m_reportTimer) |