PictureDialog resize fix
This commit is contained in:
parent
bc87306f82
commit
556eb1b640
1 changed files with 5 additions and 2 deletions
|
@ -409,6 +409,7 @@ void UserInterface::openSnapmaticFile(SnapmaticPicture *picture)
|
||||||
PictureDialog *picDialog = new PictureDialog(profileDB, this);
|
PictureDialog *picDialog = new PictureDialog(profileDB, this);
|
||||||
picDialog->setWindowFlags(picDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
|
picDialog->setWindowFlags(picDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||||
picDialog->setSnapmaticPicture(picture, true);
|
picDialog->setSnapmaticPicture(picture, true);
|
||||||
|
picDialog->setModal(true);
|
||||||
|
|
||||||
int crewID = picture->getCrewNumber();
|
int crewID = picture->getCrewNumber();
|
||||||
if (crewID != 0) { crewDB->addCrew(crewID); }
|
if (crewID != 0) { crewDB->addCrew(crewID); }
|
||||||
|
@ -416,8 +417,10 @@ void UserInterface::openSnapmaticFile(SnapmaticPicture *picture)
|
||||||
QObject::connect(threadDB, SIGNAL(playerNameFound(int, QString)), profileDB, SLOT(setPlayerName(int, QString)));
|
QObject::connect(threadDB, SIGNAL(playerNameFound(int, QString)), profileDB, SLOT(setPlayerName(int, QString)));
|
||||||
QObject::connect(threadDB, SIGNAL(playerNameUpdated()), picDialog, SLOT(playerNameUpdated()));
|
QObject::connect(threadDB, SIGNAL(playerNameUpdated()), picDialog, SLOT(playerNameUpdated()));
|
||||||
|
|
||||||
picDialog->setModal(true);
|
|
||||||
picDialog->show();
|
picDialog->show();
|
||||||
|
picDialog->setMinimumSize(picDialog->size());
|
||||||
|
picDialog->setMaximumSize(picDialog->size());
|
||||||
|
|
||||||
picDialog->exec();
|
picDialog->exec();
|
||||||
delete picDialog;
|
delete picDialog;
|
||||||
}
|
}
|
||||||
|
@ -427,8 +430,8 @@ void UserInterface::openSavegameFile(SavegameData *savegame)
|
||||||
SavegameDialog *sgdDialog = new SavegameDialog(this);
|
SavegameDialog *sgdDialog = new SavegameDialog(this);
|
||||||
sgdDialog->setWindowFlags(sgdDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
|
sgdDialog->setWindowFlags(sgdDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||||
sgdDialog->setSavegameData(savegame, savegame->getSavegameFileName(), true);
|
sgdDialog->setSavegameData(savegame, savegame->getSavegameFileName(), true);
|
||||||
|
|
||||||
sgdDialog->setModal(true);
|
sgdDialog->setModal(true);
|
||||||
|
|
||||||
sgdDialog->show();
|
sgdDialog->show();
|
||||||
sgdDialog->exec();
|
sgdDialog->exec();
|
||||||
delete sgdDialog;
|
delete sgdDialog;
|
||||||
|
|
Loading…
Reference in a new issue