Skip to content

Commit

Permalink
Fix progress dialog height
Browse files Browse the repository at this point in the history
  • Loading branch information
kefir500 committed Nov 4, 2015
1 parent 968ea5f commit 831aaee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dialogs/dialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ void InputDialog::checkInput(QString text)
ProgressDialog::ProgressDialog(QWidget *parent) : QDialog(parent)
{
resize(220, 100);
setFixedHeight(100);
setModal(true);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);

Expand All @@ -103,6 +102,8 @@ ProgressDialog::ProgressDialog(QWidget *parent) : QDialog(parent)
layout->addWidget(progress);
layout->addWidget(buttons);

setFixedHeight((sizeHint().height() < 100) ? 100 : sizeHint().height());

#ifdef WINEXTRAS
isWinExtras = QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA;
if (isWinExtras) {
Expand Down

0 comments on commit 831aaee

Please sign in to comment.