diff --git a/main.cpp b/main.cpp index 011d308..4f4fb70 100755 --- a/main.cpp +++ b/main.cpp @@ -62,7 +62,6 @@ int main(int argc, char *argv[]) ProfileDatabase *profileDB = new ProfileDatabase(); DatabaseThread *threadDB = new DatabaseThread(crewDB); QObject::connect(threadDB, SIGNAL(playerNameFound(int,QString)), profileDB, SLOT(setPlayerName(int,QString))); - threadDB->start(); if (selectedAction == "showpic") { @@ -77,6 +76,7 @@ int main(int argc, char *argv[]) if (!readOk) { return 1; } QObject::connect(threadDB, SIGNAL(playerNameUpdated()), picDialog, SLOT(on_playerNameUpdated())); + threadDB->start(); picDialog->show(); return a.exec();