Fix progress bar.

When user opens a pattern after menu Window -> Close pattern the progress bar
is missing.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-11-02 12:15:19 +02:00
parent 82792dba6c
commit 57ae6e82a0

View file

@ -4889,6 +4889,7 @@ bool MainWindow::LoadPattern(QString fileName, const QString& customMeasureFile)
m_progressBar->setVisible(true);
m_statusLabel->setVisible(false);
m_progressBar->setValue(0);
const int elements = doc->ElementsToParse();
m_progressBar->setMaximum(elements);
#if defined(Q_OS_WIN32) && QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)