diff --git a/src/kits/interface/Shelf.cpp b/src/kits/interface/Shelf.cpp index 2a363ec559..87b6f40ecc 100644 --- a/src/kits/interface/Shelf.cpp +++ b/src/kits/interface/Shelf.cpp @@ -638,7 +638,7 @@ BShelf::Save() { status_t status = B_ERROR; if (fEntry != NULL) { - BFile *file = new BFile(fEntry, B_READ_WRITE); + BFile *file = new BFile(fEntry, B_READ_WRITE | B_ERASE_FILE); status = file->InitCheck(); if (status < B_OK) { delete file;