Hello community,

here is the log from the commit of package xdg-desktop-portal-kde for 
openSUSE:Leap:15.2 checked in at 2020-03-13 10:59:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/xdg-desktop-portal-kde (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.xdg-desktop-portal-kde.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xdg-desktop-portal-kde"

Fri Mar 13 10:59:41 2020 rev:56 rq:784467 version:5.18.3

Changes:
--------
--- 
/work/SRC/openSUSE:Leap:15.2/xdg-desktop-portal-kde/xdg-desktop-portal-kde.changes
  2020-03-02 13:25:46.370686521 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.xdg-desktop-portal-kde.new.3160/xdg-desktop-portal-kde.changes
        2020-03-13 11:01:44.572621528 +0100
@@ -1,0 +2,12 @@
+Tue Mar 10 14:55:35 UTC 2020 - Fabian Vogt <[email protected]>
+
+- Update to 5.18.3
+  * New bugfix release
+  * For more details please see:
+  * https://www.kde.org/announcements/plasma-5.18.3.php
+- Changes since 5.18.2:
+  * use content_type as fallback in appchooser dialog
+  * Only deprecate up to target frameworks
+  * FileChooser: do not return empty file list when no local file is selected 
BUG: 418155 (kde#418155)
+
+-------------------------------------------------------------------

Old:
----
  xdg-desktop-portal-kde-5.18.2.tar.xz
  xdg-desktop-portal-kde-5.18.2.tar.xz.sig

New:
----
  xdg-desktop-portal-kde-5.18.3.tar.xz
  xdg-desktop-portal-kde-5.18.3.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xdg-desktop-portal-kde.spec ++++++
--- /var/tmp/diff_new_pack.bEz4bg/_old  2020-03-13 11:01:44.928621782 +0100
+++ /var/tmp/diff_new_pack.bEz4bg/_new  2020-03-13 11:01:44.932621785 +0100
@@ -25,7 +25,7 @@
 
 %define kf5_version 5.50.0
 Name:           xdg-desktop-portal-kde
-Version:        5.18.2
+Version:        5.18.3
 Release:        0
 Summary:        QT/KF5 backend for xdg-desktop-portal
 License:        LGPL-2.1-or-later


++++++ xdg-desktop-portal-kde-5.18.2.tar.xz -> 
xdg-desktop-portal-kde-5.18.3.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xdg-desktop-portal-kde-5.18.2/CMakeLists.txt 
new/xdg-desktop-portal-kde-5.18.3/CMakeLists.txt
--- old/xdg-desktop-portal-kde-5.18.2/CMakeLists.txt    2020-02-25 
14:36:26.000000000 +0100
+++ new/xdg-desktop-portal-kde-5.18.3/CMakeLists.txt    2020-03-10 
14:32:29.000000000 +0100
@@ -2,7 +2,7 @@
 
 project(xdg-desktop-portal-kde)
 
-set(PROJECT_VERSION "5.18.2")
+set(PROJECT_VERSION "5.18.3")
 set(PROJECT_VERSION_MAJOR 5)
 
 set(QT_MIN_VERSION "5.12.0")
@@ -73,7 +73,7 @@
 
 if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
    add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
-   add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x060000)
+   add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054200)
 endif()
 
 add_subdirectory(data)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/xdg-desktop-portal-kde-5.18.2/po/zh_CN/xdg-desktop-portal-kde.po 
new/xdg-desktop-portal-kde-5.18.3/po/zh_CN/xdg-desktop-portal-kde.po
--- old/xdg-desktop-portal-kde-5.18.2/po/zh_CN/xdg-desktop-portal-kde.po        
2020-02-25 14:36:26.000000000 +0100
+++ new/xdg-desktop-portal-kde-5.18.3/po/zh_CN/xdg-desktop-portal-kde.po        
2020-03-10 14:32:29.000000000 +0100
@@ -4,7 +4,7 @@
 "Project-Id-Version: kdeorg\n"
 "Report-Msgid-Bugs-To: https://bugs.kde.org\n";
 "POT-Creation-Date: 2020-01-31 08:34+0100\n"
-"PO-Revision-Date: 2020-01-20 21:55\n"
+"PO-Revision-Date: 2020-03-10 10:58\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: Chinese Simplified\n"
 "Language: zh_CN\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xdg-desktop-portal-kde-5.18.2/src/appchooser.cpp 
new/xdg-desktop-portal-kde-5.18.3/src/appchooser.cpp
--- old/xdg-desktop-portal-kde-5.18.2/src/appchooser.cpp        2020-02-25 
14:35:58.000000000 +0100
+++ new/xdg-desktop-portal-kde-5.18.3/src/appchooser.cpp        2020-03-10 
14:32:07.000000000 +0100
@@ -55,7 +55,11 @@
         latestChoice = options.value(QStringLiteral("last_choice")).toString();
     }
 
-    AppChooserDialog *appDialog = new AppChooserDialog(choices, latestChoice, 
options.value(QStringLiteral("filename")).toString());
+    QVariant itemName = options.value(QStringLiteral("filename"));
+    if (!itemName.isValid()) {
+        itemName = options.value(QStringLiteral("content_type"));
+    }
+    AppChooserDialog *appDialog = new AppChooserDialog(choices, latestChoice, 
itemName.toString());
     m_appChooserDialogs.insert(handle.path(), appDialog);
     Utils::setParentWindow(appDialog, parent_window);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xdg-desktop-portal-kde-5.18.2/src/filechooser.cpp 
new/xdg-desktop-portal-kde-5.18.3/src/filechooser.cpp
--- old/xdg-desktop-portal-kde-5.18.2/src/filechooser.cpp       2020-02-25 
14:35:58.000000000 +0100
+++ new/xdg-desktop-portal-kde-5.18.3/src/filechooser.cpp       2020-03-10 
14:32:07.000000000 +0100
@@ -202,6 +202,12 @@
            QUrl url = QUrl::fromLocalFile(filename);
            files << url.toDisplayString();
         }
+
+        if (files.isEmpty()) {
+            qCDebug(XdgDesktopPortalKdeFileChooser) << "Failed to open file: 
no local file selected";
+            return 2;
+        }
+
         results.insert(QStringLiteral("uris"), files);
         return 0;
     }


Reply via email to