Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xdg-desktop-portal-kde for openSUSE:Factory checked in at 2021-07-09 23:57:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xdg-desktop-portal-kde (Old) and /work/SRC/openSUSE:Factory/.xdg-desktop-portal-kde.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xdg-desktop-portal-kde" Fri Jul 9 23:57:23 2021 rev:83 rq:904542 version:5.22.3 Changes: -------- --- /work/SRC/openSUSE:Factory/xdg-desktop-portal-kde/xdg-desktop-portal-kde.changes 2021-06-27 18:59:22.284298878 +0200 +++ /work/SRC/openSUSE:Factory/.xdg-desktop-portal-kde.new.2625/xdg-desktop-portal-kde.changes 2021-07-09 23:57:58.597160326 +0200 @@ -1,0 +2,11 @@ +Tue Jul 6 12:01:52 UTC 2021 - Fabian Vogt <fab...@ritter-vogt.de> + +- Update to 5.22.3 + * New bugfix release + * For more details please see: + * https://kde.org/announcements/plasma/5/5.22.2 +- Changes since 5.22.2.1: + * Background portal: avoid crash when allowing app to run in background (kde#438954) + * Pass the version to the project call + +------------------------------------------------------------------- Old: ---- xdg-desktop-portal-kde-5.22.2.1.tar.xz xdg-desktop-portal-kde-5.22.2.1.tar.xz.sig New: ---- xdg-desktop-portal-kde-5.22.3.tar.xz xdg-desktop-portal-kde-5.22.3.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xdg-desktop-portal-kde.spec ++++++ --- /var/tmp/diff_new_pack.3De2xU/_old 2021-07-09 23:57:59.141156097 +0200 +++ /var/tmp/diff_new_pack.3De2xU/_new 2021-07-09 23:57:59.141156097 +0200 @@ -24,15 +24,15 @@ %define kf5_version 5.50.0 Name: xdg-desktop-portal-kde -Version: 5.22.2.1 +Version: 5.22.3 Release: 0 Summary: QT/KF5 backend for xdg-desktop-portal License: LGPL-2.1-or-later Group: System/Libraries URL: http://www.kde.org -Source: https://download.kde.org/stable/plasma/5.22.2/xdg-desktop-portal-kde-%{version}.tar.xz +Source: https://download.kde.org/stable/plasma/%{version}/xdg-desktop-portal-kde-%{version}.tar.xz %if %{with lang} -Source1: https://download.kde.org/stable/plasma/5.22.2/xdg-desktop-portal-kde-%{version}.tar.xz.sig +Source1: https://download.kde.org/stable/plasma/%{version}/xdg-desktop-portal-kde-%{version}.tar.xz.sig Source2: plasma.keyring %endif BuildRequires: extra-cmake-modules >= %{kf5_version} ++++++ xdg-desktop-portal-kde-5.22.2.1.tar.xz -> xdg-desktop-portal-kde-5.22.3.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xdg-desktop-portal-kde-5.22.2.1/CMakeLists.txt new/xdg-desktop-portal-kde-5.22.3/CMakeLists.txt --- old/xdg-desktop-portal-kde-5.22.2.1/CMakeLists.txt 2021-06-22 21:17:12.000000000 +0200 +++ new/xdg-desktop-portal-kde-5.22.3/CMakeLists.txt 2021-07-06 12:36:49.000000000 +0200 @@ -1,10 +1,10 @@ cmake_minimum_required(VERSION 3.16) -project(xdg-desktop-portal-kde) - -set(PROJECT_VERSION "5.22.2") +set(PROJECT_VERSION "5.22.3") set(PROJECT_VERSION_MAJOR 5) +project(xdg-desktop-portal-kde VERSION ${PROJECT_VERSION}) + set(QT_MIN_VERSION "5.15.0") set(KF5_MIN_VERSION "5.82") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xdg-desktop-portal-kde-5.22.2.1/src/background.cpp new/xdg-desktop-portal-kde-5.22.3/src/background.cpp --- old/xdg-desktop-portal-kde-5.22.2.1/src/background.cpp 2021-06-22 21:16:54.000000000 +0200 +++ new/xdg-desktop-portal-kde-5.22.3/src/background.cpp 2021-07-06 12:36:29.000000000 +0200 @@ -112,23 +112,28 @@ const QString text = i18n( "This might be for a legitimate reason, but the application has not provided one." "\n\nNote that forcing an application to quit might cause data loss."); - QMessageBox messageBox(QMessageBox::Question, title, text); - QPushButton *quitButton = messageBox.addButton(i18n("Force quit"), QMessageBox::RejectRole); - QPushButton *allowButton = messageBox.addButton(i18n("Allow"), QMessageBox::AcceptRole); - messageBox.exec(); + QMessageBox *messageBox = new QMessageBox(QMessageBox::Question, title, text); + messageBox->addButton(i18n("Force quit"), QMessageBox::RejectRole); + messageBox->addButton(i18n("Allow"), QMessageBox::AcceptRole); - BackgroundPortal::NotifyResult result = BackgroundPortal::Ignore; - if (messageBox.clickedButton() == quitButton) { - result = BackgroundPortal::Forbid; - } else if (messageBox.clickedButton() == allowButton) { - result = BackgroundPortal::Allow; - } + messageBox->show(); - const QVariantMap map = {{QStringLiteral("result"), static_cast<uint>(result)}}; - QDBusMessage reply = message.createReply({static_cast<uint>(0), map}); - if (!QDBusConnection::sessionBus().send(reply)) { - qCWarning(XdgDesktopPortalKdeBackground) << "Failed to send response"; - } + connect(messageBox, &QMessageBox::accepted, this, [message, messageBox]() { + const QVariantMap map = {{QStringLiteral("result"), static_cast<uint>(BackgroundPortal::Allow)}}; + QDBusMessage reply = message.createReply({static_cast<uint>(0), map}); + if (!QDBusConnection::sessionBus().send(reply)) { + qCWarning(XdgDesktopPortalKdeBackground) << "Failed to send response"; + } + messageBox->deleteLater(); + }); + connect(messageBox, &QMessageBox::rejected, this, [message, messageBox]() { + const QVariantMap map = {{QStringLiteral("result"), static_cast<uint>(BackgroundPortal::Forbid)}}; + QDBusMessage reply = message.createReply({static_cast<uint>(0), map}); + if (!QDBusConnection::sessionBus().send(reply)) { + qCWarning(XdgDesktopPortalKdeBackground) << "Failed to send response"; + } + messageBox->deleteLater(); + }); }); connect(notify, &KNotification::closed, this, [=]() { if (notify->property("activated").toBool()) {