Apply patch from Caitlin Shaw, aka rogueeve, to fix Tracker's replace behavior
for the case of 1 file. Fixes #4717. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33427 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1731,7 +1731,7 @@ PreFlightNameCheck(BObjectList<entry_ref> *srcList, const BDirectory *destDir,
|
|||||||
|
|
||||||
// prompt user only if there is more than one collision, otherwise the
|
// prompt user only if there is more than one collision, otherwise the
|
||||||
// single collision case will be handled as a "Prompt" case by CheckName
|
// single collision case will be handled as a "Prompt" case by CheckName
|
||||||
if (*collisionCount > 0) {
|
if (*collisionCount > 1) {
|
||||||
const char *verb = (moveMode == kMoveSelectionTo) ? "moving" : "copying";
|
const char *verb = (moveMode == kMoveSelectionTo) ? "moving" : "copying";
|
||||||
char replaceMsg[256];
|
char replaceMsg[256];
|
||||||
sprintf(replaceMsg, kReplaceManyStr, verb, verb);
|
sprintf(replaceMsg, kReplaceManyStr, verb, verb);
|
||||||
|
|||||||
Reference in New Issue
Block a user