[haiku-commits] r33427 - haiku/trunk/src/kits/tracker

Author: leavengood
Date: 2009-10-04 22:52:04 +0200 (Sun, 04 Oct 2009)
New Revision: 33427
Changeset: http://dev.haiku-os.org/changeset/33427/haiku

Modified:
   haiku/trunk/src/kits/tracker/FSUtils.cpp
Log:
Apply patch from Caitlin Shaw, aka rogueeve, to fix Tracker's replace behavior
for the case of 1 file.

Fixes #4717.


Modified: haiku/trunk/src/kits/tracker/FSUtils.cpp
===================================================================
--- haiku/trunk/src/kits/tracker/FSUtils.cpp    2009-10-04 20:20:19 UTC (rev 
33426)
+++ haiku/trunk/src/kits/tracker/FSUtils.cpp    2009-10-04 20:52:04 UTC (rev 
33427)
@@ -1731,7 +1731,7 @@
 
        // prompt user only if there is more than one collision, otherwise the
        // 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";
                char replaceMsg[256];
                sprintf(replaceMsg, kReplaceManyStr, verb, verb);


Other related posts:

  • » [haiku-commits] r33427 - haiku/trunk/src/kits/tracker - leavengood