Skip to content

Commit

Permalink
Fixed|UI|Client: Removing saves in Home
Browse files Browse the repository at this point in the history
When removing a savegame, the path was being forced to lower case for no
reason. A case-sensitive native file system failed to find the save
file.
  • Loading branch information
skyjake committed Nov 25, 2016
1 parent 4fecd87 commit d4c5ce7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions doomsday/apps/client/src/ui/savelistdata.cpp
Expand Up @@ -50,8 +50,6 @@ DENG2_PIMPL(SaveListData)
{
mainCall.enqueue([this, &saveFolder] ()
{
//GameStateFolder &saveFolder = *i.value();
//{
// Needs to be added.
self.append(new SaveItem(saveFolder));
});
Expand All @@ -60,9 +58,6 @@ DENG2_PIMPL(SaveListData)

void fileRemoved(File const &, FileIndex const &)
{
//GameStateFolder const &saveFolder = file.as<GameStateFolder>();
//String path = saveFolder.path();

// Remove obsolete entries.
mainCall.enqueue([this] ()
{
Expand All @@ -76,11 +71,6 @@ DENG2_PIMPL(SaveListData)
});
}

/*void savedIndexAvailabilityUpdate(Session::SavedIndex const &)
{
mainCall.enqueue([this] () { updateFromSavedIndex(); });
}*/

void addAllFromIndex()
{
foreach (File *file, SaveGames::get().saveIndex().files())
Expand Down Expand Up @@ -151,7 +141,7 @@ String SaveListData::SaveItem::savePath() const
{
if (saveFolder)
{
return saveFolder->path().toLower();
return saveFolder->path();
}
return "";
}
Expand Down

0 comments on commit d4c5ce7

Please sign in to comment.