From 02f549ad63d0b0159c1a190e5d0423feb1c8e1b6316d7ff38c8fc5fa70bf1024 Mon Sep 17 00:00:00 2001 From: Raymond Wooninck Date: Fri, 5 Feb 2016 21:09:14 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/discover?expand=0&rev=5 --- fix_for_gcc4.diff | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 fix_for_gcc4.diff diff --git a/fix_for_gcc4.diff b/fix_for_gcc4.diff new file mode 100644 index 0000000..798f641 --- /dev/null +++ b/fix_for_gcc4.diff @@ -0,0 +1,19 @@ +From e651466574bc08a8afe5b8bff40d23070f94d434 Mon Sep 17 00:00:00 2001 +From: Raymond Wooninck +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"; + }