From c98d5ba154cce39156ea438a226e6078753bac8b Mon Sep 17 00:00:00 2001 From: Rafael Date: Tue, 22 Mar 2016 06:15:14 +0100 Subject: [PATCH] start thread after window showing --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();