summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2018-05-04 02:30:10 -0500
committerSilarn <jrim@rimpo.org>2018-05-04 02:30:10 -0500
commitd9b1cfdb4b287fe43742269aaec26907ddcb6445 (patch)
tree1a38da440ce0fb5ae1770c378f55969a0868baa6
parent98b659f0da632bdf95a8a20c516d16f2f7bd9594 (diff)
invokeMethod was getting called too late and is unneeded now
-rw-r--r--src/installationmanager.cpp4
1 files changed, 1 insertions, 3 deletions
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<int>(percentage * 100.0)));
- //m_InstallationProgress->setValue(percent);
+ m_InstallationProgress->setValue(static_cast<int>(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) {