diff --git a/CrewDatabase.cpp b/CrewDatabase.cpp index cd8a936..aae5683 100755 --- a/CrewDatabase.cpp +++ b/CrewDatabase.cpp @@ -47,14 +47,10 @@ CrewDatabase::~CrewDatabase() QStringList CrewDatabase::getCrews() { - mutex.lock(); return crewDB->childKeys(); - mutex.unlock(); } void CrewDatabase::addCrew(int crewID) { - mutex.lock(); crewDB->setValue(QString::number(crewID), crewID); - mutex.unlock(); } diff --git a/ProfileDatabase.cpp b/ProfileDatabase.cpp index 0cb83c0..a809c82 100755 --- a/ProfileDatabase.cpp +++ b/ProfileDatabase.cpp @@ -47,21 +47,15 @@ ProfileDatabase::~ProfileDatabase() QStringList ProfileDatabase::getPlayers() { - mutex.lock(); return profileDB->childKeys(); - mutex.unlock(); } QString ProfileDatabase::getPlayerName(int playerID) { - mutex.lock(); return profileDB->value(QString::number(playerID), playerID).toString(); - mutex.unlock(); } void ProfileDatabase::setPlayerName(int playerID, QString playerName) { - mutex.lock(); profileDB->setValue(QString::number(playerID), playerName); - mutex.unlock(); } diff --git a/main.cpp b/main.cpp index afd78e7..35adda2 100755 --- a/main.cpp +++ b/main.cpp @@ -360,6 +360,9 @@ int main(int argc, char *argv[]) #endif // End internal translate loading + QLocale locale; + qDebug() << locale.nativeLanguageName(); + QStringList applicationArgs = a.arguments(); QString selectedAction; QString arg1;