mutex removed, did not work

This commit is contained in:
Rafael 2016-05-08 19:38:27 +02:00
parent 1067fcf353
commit 2dc83498a7
3 changed files with 3 additions and 10 deletions

View File

@ -47,14 +47,10 @@ CrewDatabase::~CrewDatabase()
QStringList CrewDatabase::getCrews() QStringList CrewDatabase::getCrews()
{ {
mutex.lock();
return crewDB->childKeys(); return crewDB->childKeys();
mutex.unlock();
} }
void CrewDatabase::addCrew(int crewID) void CrewDatabase::addCrew(int crewID)
{ {
mutex.lock();
crewDB->setValue(QString::number(crewID), crewID); crewDB->setValue(QString::number(crewID), crewID);
mutex.unlock();
} }

View File

@ -47,21 +47,15 @@ ProfileDatabase::~ProfileDatabase()
QStringList ProfileDatabase::getPlayers() QStringList ProfileDatabase::getPlayers()
{ {
mutex.lock();
return profileDB->childKeys(); return profileDB->childKeys();
mutex.unlock();
} }
QString ProfileDatabase::getPlayerName(int playerID) QString ProfileDatabase::getPlayerName(int playerID)
{ {
mutex.lock();
return profileDB->value(QString::number(playerID), playerID).toString(); return profileDB->value(QString::number(playerID), playerID).toString();
mutex.unlock();
} }
void ProfileDatabase::setPlayerName(int playerID, QString playerName) void ProfileDatabase::setPlayerName(int playerID, QString playerName)
{ {
mutex.lock();
profileDB->setValue(QString::number(playerID), playerName); profileDB->setValue(QString::number(playerID), playerName);
mutex.unlock();
} }

View File

@ -360,6 +360,9 @@ int main(int argc, char *argv[])
#endif #endif
// End internal translate loading // End internal translate loading
QLocale locale;
qDebug() << locale.nativeLanguageName();
QStringList applicationArgs = a.arguments(); QStringList applicationArgs = a.arguments();
QString selectedAction; QString selectedAction;
QString arg1; QString arg1;