Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
UI|Client: Ignore SavedSessions outside of /home/savegames
  • Loading branch information
danij-deng committed Mar 29, 2014
1 parent 8f92b51 commit 0876993
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions doomsday/client/src/ui/widgets/savegameselectionwidget.cpp
Expand Up @@ -203,9 +203,13 @@ DENG_GUI_PIMPL(SavegameSelectionWidget)
ui::Data::Pos found = self.items().findData(i.key());
if(found == ui::Data::InvalidPos)
{
// Needs to be added.
self.items().append(new SavegameListItem(*i.value()));
changed = true;
SavedSession &session = *i.value();
if(!session.path().beginsWith("/home/savegames")) // Ignore non-user savegames.
{
// Needs to be added.
self.items().append(new SavegameListItem(session));
changed = true;
}
}
}

Expand Down

0 comments on commit 0876993

Please sign in to comment.