refs #485, refs #605 make clear when we use process events just to refresh GUI

This commit is contained in:
Klaus Basan
2016-03-13 18:17:02 +00:00
committed by Mathew Sutcliffe
parent f124412896
commit f1ace9dde0
5 changed files with 14 additions and 6 deletions

View File

@@ -221,7 +221,7 @@ namespace BlackGui
if (c % 25 == 0)
{
Q_ASSERT_X(c <= all, Q_FUNC_INFO, "illegal numbers");
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
sGui->processEventsToRefreshGui();
int percent = c * 100 / all;
if (max < all)
@@ -235,7 +235,7 @@ namespace BlackGui
}
this->updateGuiValues(100);
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
sGui->processEventsToRefreshGui();
const CStatusMessage stashedMsg(categgories(), CStatusMessage::SeverityInfo, QString("Ready to auto stashed %1 models").arg(autoStashed.size()));
this->addStatusMessage(stashedMsg);