forked from pool/kirigami2
4678c3aff7
- Add fix-build-with-gcc48.patch to make it compile with gcc 4.8 on Leap 42.3 OBS-URL: https://build.opensuse.org/request/show/616631 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kirigami2?expand=0&rev=52
27 lines
925 B
Diff
27 lines
925 B
Diff
From 4f92428600aa0bcee9a300884941803383f1da41 Mon Sep 17 00:00:00 2001
|
|
From: Wolfgang Bauer <wbauer@tmo.at>
|
|
Date: Wed, 13 Jun 2018 12:11:25 +0200
|
|
Subject: [PATCH] Fix build with gcc 4.8
|
|
|
|
See https://bugreports.qt.io/browse/QTBUG-48988
|
|
---
|
|
src/delegaterecycler.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/delegaterecycler.cpp b/src/delegaterecycler.cpp
|
|
index f648fc7..b51b5dd 100644
|
|
--- a/src/delegaterecycler.cpp
|
|
+++ b/src/delegaterecycler.cpp
|
|
@@ -213,7 +213,7 @@ void DelegateRecycler::setSourceComponent(QQmlComponent *component)
|
|
if (!m_item) {
|
|
obj->deleteLater();
|
|
} else {
|
|
- connect(m_item, &QObject::destroyed, ctx, &QObject::deleteLater);
|
|
+ connect(m_item.data(), &QObject::destroyed, ctx, &QObject::deleteLater);
|
|
}
|
|
} else {
|
|
QQmlContext *ctx = QQmlEngine::contextForObject(m_item)->parentContext();
|
|
--
|
|
2.13.7
|
|
|