forked from pool/discover
20 lines
946 B
Diff
20 lines
946 B
Diff
From e651466574bc08a8afe5b8bff40d23070f94d434 Mon Sep 17 00:00:00 2001
|
|
From: Raymond Wooninck <tittiatcoke@gmail.com>
|
|
Date: Fri, 5 Feb 2016 10:40:05 +0100
|
|
Subject: Make it compile with GCC < 5
|
|
|
|
|
|
diff --git a/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp b/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp
|
|
index 48a75e2..af095eb 100644
|
|
--- a/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp
|
|
+++ b/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp
|
|
@@ -196,7 +196,7 @@ void PackageKitBackend::refreshDatabase()
|
|
{
|
|
if (!m_refresher) {
|
|
m_refresher = PackageKit::Daemon::refreshCache(false);
|
|
- connect(m_refresher, &PackageKit::Transaction::finished, this, &PackageKitBackend::reloadPackageList);
|
|
+ connect(m_refresher.data(), &PackageKit::Transaction::finished, this, &PackageKitBackend::reloadPackageList);
|
|
} else {
|
|
qWarning() << "already resetting";
|
|
}
|