forked from pool/discover
This commit is contained in:
parent
07ee49dde7
commit
02f549ad63
19
fix_for_gcc4.diff
Normal file
19
fix_for_gcc4.diff
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
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";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user