SHA256
1
0
forked from pool/rz-cutter
rz-cutter/Fix-build-failure-against-PySide-6.8.patch

15 lines
686 B
Diff
Raw Permalink Normal View History

diff --git a/src/common/PythonManager.cpp b/src/common/PythonManager.cpp
index eb43b018e065..85a7ec191d1b 100644
--- a/src/common/PythonManager.cpp
+++ b/src/common/PythonManager.cpp
@@ -133,7 +133,9 @@ void PythonManager::shutdown()
Core()->setProperty("_PySideInvalidatePtr", QVariant());
// see PySide::destroyQCoreApplication()
+# if QT_VERSION < QT_VERSION_CHECK(6, 8, 0)
PySide::SignalManager::instance().clear();
+# endif
Shiboken::BindingManager &bm = Shiboken::BindingManager::instance();
SbkObject *pyQApp = bm.retrieveWrapper(QCoreApplication::instance());
PyTypeObject *pyQObjectType = Shiboken::Conversions::getPythonTypeObject("QObject*");