git » kxmlgui.git » commit 68bfad8

KDE Frameworks 5.11

author Antonio Rojas
2015-06-10 20:56:07 UTC
committer Antonio Rojas
2015-06-10 20:56:07 UTC
parent e463a9fa45cc455ad837550b9f238a4888439996

KDE Frameworks 5.11

PKGBUILD +4 -10
session-restore.patch +0 -54

diff --git a/PKGBUILD b/PKGBUILD
index 96712b7..aea0fb0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
 # Contributor: Andrea Scarpino <andrea@archlinux.org>
 
 pkgname=kxmlgui
-pkgver=5.10.0
-pkgrel=2
+pkgver=5.11.0
+pkgrel=1
 pkgdesc='User configurable main windows'
 arch=('i686' 'x86_64')
 url='https://projects.kde.org/projects/frameworks/kxmlgui'
@@ -11,17 +11,11 @@ license=('LGPL')
 depends=('kglobalaccel' 'ktextwidgets' 'attica-qt5')
 makedepends=('extra-cmake-modules' 'python')
 groups=('kf5')
-source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" 
-'session-restore.patch')
-md5sums=('35b8161e519fc6a2a466330a9f24c05f'
-         '4dc0c7ec892840d27cacb99085219991')
+source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz")
+md5sums=('057915802467acb7c6b5cb71a38a021a')
 
 prepare() {
   mkdir -p build
-
-# Fix session restore for KF5 applications https://bugs.kde.org/show_bug.cgi?id=346768
-  cd $pkgname-$pkgver
-  patch -p1 -i "$srcdir"/session-restore.patch
 }
 
 build() {
diff --git a/session-restore.patch b/session-restore.patch
deleted file mode 100644
index 409e496..0000000
--- a/session-restore.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From: Stefan Becker <chemobejk@gmail.com>
-Date: Sat, 09 May 2015 14:17:25 +0000
-Subject: Add session management for KMainWindow
-X-Git-Url: http://quickgit.kde.org/?p=kxmlgui.git&a=commitdiff&h=fa86f6e4afd4a4f32d297f271d3daececc6c0ba4
----
-Add session management for KMainWindow
-
-- replace the KConfig object in KConfigGui with a new one using the
-session id and key from the QSessionManager object
-- make sure that the data is stored after the application has update it
-- if the KConfig object is represented by a local file then add a
-discard command to the session manager object
-
-BUG: 346768
-REVIEW: 123706
----
-
-
---- a/src/kmainwindow.cpp
-+++ b/src/kmainwindow.cpp
-@@ -127,8 +127,10 @@
- {
- }
- 
--bool KMWSessionManager::saveState(QSessionManager &)
--{
-+bool KMWSessionManager::saveState(QSessionManager &sm)
-+{
-+    KConfigGui::setSessionConfig(sm.sessionId(), sm.sessionKey());
-+
-     KConfig *config = KConfigGui::sessionConfig();
-     if (KMainWindow::memberList().count()) {
-         // According to Jochen Wilhelmy <digisnap@cs.tu-berlin.de>, this
-@@ -144,6 +146,19 @@
- 
-     KConfigGroup group(config, "Number");
-     group.writeEntry("NumberOfWindows", n);
-+
-+    // store new status to disk
-+    config->sync();
-+
-+    // generate discard command for new file
-+    QString localFilePath =  QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1Char('/') + config->name();
-+    if (QFile::exists(localFilePath)) {
-+        QStringList discard;
-+        discard << QLatin1String("rm");
-+        discard << localFilePath;
-+        sm.setDiscardCommand(discard);
-+    }
-+
-     return true;
- }
- 
-