PictureDialog resize issue fixed

This commit is contained in:
Rafael 2016-04-22 14:57:56 +02:00
parent 462242b4f0
commit 2a559d7fa4
2 changed files with 3 additions and 1 deletions

View file

@ -106,7 +106,7 @@ void SnapmaticWidget::on_cmdView_clicked()
QObject::connect(picDialog, SIGNAL(previousPictureRequested()), this, SLOT(dialogPreviousPictureRequested())); QObject::connect(picDialog, SIGNAL(previousPictureRequested()), this, SLOT(dialogPreviousPictureRequested()));
// show picture dialog // show picture dialog
picDialog->showNormal(); picDialog->show();
picDialog->setMinimumSize(picDialog->size()); picDialog->setMinimumSize(picDialog->size());
picDialog->setMaximumSize(picDialog->size()); picDialog->setMaximumSize(picDialog->size());
picDialog->exec(); picDialog->exec();

View file

@ -421,6 +421,8 @@ int main(int argc, char *argv[])
threadDB->start(); threadDB->start();
picDialog->show(); picDialog->show();
picDialog->setMinimumSize(picDialog->size());
picDialog->setMaximumSize(picDialog->size());
return a.exec(); return a.exec();
} }