From a06ed8e570f9cb746f77b00ac73e76597b61d98d Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 28 Jul 2021 23:11:09 +0200 Subject: [PATCH] - added qt patch (fix QList::contains() result usage) --- kde4-kopete-qt.patch | 11 +++++++++++ kde4-kopete.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 kde4-kopete-qt.patch diff --git a/kde4-kopete-qt.patch b/kde4-kopete-qt.patch new file mode 100644 index 0000000..7bb5e0a --- /dev/null +++ b/kde4-kopete-qt.patch @@ -0,0 +1,11 @@ +--- kopete-4.14.3/protocols/jabber/libiris/src/xmpp/xmpp-im/filetransfer.cpp.orig 2014-11-02 12:16:53.000000000 +0100 ++++ kopete-4.14.3/protocols/jabber/libiris/src/xmpp/xmpp-im/filetransfer.cpp 2021-07-28 21:45:47.394356452 +0200 +@@ -430,7 +430,7 @@ FileTransfer *FileTransferManager::takeI + + bool FileTransferManager::isActive(const FileTransfer *ft) const + { +- return d->list.contains(const_cast(ft)) > 0; ++ return d->list.contains(const_cast(ft)); + } + + void FileTransferManager::setDisabled(const QString &ns, bool state) diff --git a/kde4-kopete.spec b/kde4-kopete.spec index 9e789d8..f27a69d 100644 --- a/kde4-kopete.spec +++ b/kde4-kopete.spec @@ -19,6 +19,7 @@ Patch1: linphone-fix.patch Patch2: mediastreamer.patch Patch3: gcc6.patch Patch4: macros.patch +Patch5: %{name}-qt.patch URL: http://www.kde.org/ BuildRequires: automoc4 BuildRequires: cmake >= 2.8.0 @@ -226,6 +227,7 @@ do kopete. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build install -d build -- 2.44.0