added name updating while window open

This commit is contained in:
Rafael 2016-03-22 05:59:17 +01:00
parent 49d29aa3ec
commit 4334537966
5 changed files with 41 additions and 7 deletions

View file

@ -71,9 +71,12 @@ int main(int argc, char *argv[])
bool readOk = picture.readingPictureFromFile(arg1);
picDialog->setWindowFlags(picDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
picDialog->setSnapmaticPicture(&picture, readOk);
int crewID = picture.getCrewNumber();
if (crewID != 0) { crewDB->addCrew(crewID); }
if (!readOk) { return 1; }
QObject::connect(threadDB, SIGNAL(playerNameUpdated()), picDialog, SLOT(on_playerNameUpdated()));
picDialog->show();
return a.exec();