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:
parent
82792dba6c
commit
57ae6e82a0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user