fixed Database memory leaks, add getPlayers to ProfileDatabase

This commit is contained in:
Rafael 2016-04-13 20:40:49 +02:00
parent 704337bab6
commit c9eea52af7
3 changed files with 8 additions and 0 deletions

View file

@ -41,6 +41,12 @@ ProfileDatabase::ProfileDatabase(QObject *parent) : QObject(parent)
ProfileDatabase::~ProfileDatabase()
{
profileDB->endGroup();
delete profileDB;
}
QStringList ProfileDatabase::getPlayers()
{
return profileDB->childKeys();
}
QString ProfileDatabase::getPlayerName(int playerID)