diff options
author | Oz Linden <oz@lindenlab.com> | 2011-03-31 16:51:41 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-03-31 16:51:41 -0400 |
commit | c5ae838ce3cd8521b7b4817f153560e03a8dcc32 (patch) | |
tree | 7a489631ed3811ae52fab7bbf6b5a1075aa20e65 /indra/mac_updater/mac_updater.cpp | |
parent | ba0c369aa20cdbfd7940a2435dd3c6630f0d54ae (diff) | |
parent | 4047349ade461fa6bac43da2a14c6e7689918aa1 (diff) |
pull improved avatar physics ui and other improvements from Seraph
Diffstat (limited to 'indra/mac_updater/mac_updater.cpp')
-rw-r--r-- | indra/mac_updater/mac_updater.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/indra/mac_updater/mac_updater.cpp b/indra/mac_updater/mac_updater.cpp index 5d19e8a889..809f66cb1d 100644 --- a/indra/mac_updater/mac_updater.cpp +++ b/indra/mac_updater/mac_updater.cpp @@ -1230,20 +1230,14 @@ void *updatethreadproc(void*) // Move work directory to the trash if(tempDir[0] != 0) { -// chdir("/"); -// FSDeleteObjects(tempDirRef); - llinfos << "Moving work directory to the trash." << llendl; - err = FSMoveObject(&tempDirRef, &trashFolderRef, NULL); + FSRef trashRef; + OSStatus err = FSMoveObjectToTrashSync(&tempDirRef, &trashRef, 0); if(err != noErr) { llwarns << "failed to move files to trash, (error code " << err << ")" << llendl; } - -// snprintf(temp, sizeof(temp), "rm -rf '%s'", tempDir); -// printf("%s\n", temp); -// system(temp); } if(!gCancelled && !gFailure && (target[0] != 0)) |