From d9b1cfdb4b287fe43742269aaec26907ddcb6445 Mon Sep 17 00:00:00 2001 From: Silarn Date: Fri, 4 May 2018 02:30:10 -0500 Subject: invokeMethod was getting called too late and is unneeded now --- src/installationmanager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/installationmanager.cpp') diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index 8ee2220e..4b433899 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -444,8 +444,7 @@ void InstallationManager::updateProgressFile(QString const &fileName) void InstallationManager::doProgressUpdate(float percentage) { if (m_InstallationProgress != nullptr) { - QMetaObject::invokeMethod(m_InstallationProgress, "setValue", Qt::QueuedConnection, Q_ARG(int, static_cast(percentage * 100.0))); - //m_InstallationProgress->setValue(percent); + m_InstallationProgress->setValue(static_cast(percentage * 100.0)); if (m_InstallationProgress->wasCanceled()) { m_ArchiveHandler->cancel(); @@ -454,7 +453,6 @@ void InstallationManager::doProgressUpdate(float percentage) } } - void InstallationManager::doProgressFileUpdate(QString const fileName) { if (m_InstallationProgress != nullptr) { -- cgit v1.3.1