Date: Monday, November 2, 2009 @ 16:21:12
  Author: andrea
Revision: 57871

patch readded

Added:
  kdenetwork/trunk/add-overwrite-option-in-kget.patch
Modified:
  kdenetwork/trunk/PKGBUILD

------------------------------------+
 PKGBUILD                           |   12 +++++++++---
 add-overwrite-option-in-kget.patch |   16 ++++++++++++++++
 2 files changed, 25 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2009-11-02 21:11:01 UTC (rev 57870)
+++ PKGBUILD    2009-11-02 21:21:12 UTC (rev 57871)
@@ -19,11 +19,17 @@
        'kdelibs-experimental' 'kdebase-workspace' 'kdebase-lib' 'libvncserver'
        'libmsn' 'ppp' 'libv4l' 'libidn' 'rdesktop' 'qimageblitz' 'libxss'
        'libxdamage' 'libgadu')
-source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2";)
-md5sums=('bb9a20da6e18a4952f7001b581aa9a1d')
+source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2";
+        'add-overwrite-option-in-kget.patch')
+md5sums=('bb9a20da6e18a4952f7001b581aa9a1d'
+        'c22e07a8b211c687d06dfcb61e109e7d')
 
 build() {
-       cd $srcdir
+        cd ${srcdir}/${pkgbase}-${pkgver}
+        # https://bugs.kde.org/show_bug.cgi?id=207215
+        patch -p3 -i ${srcdir}/add-overwrite-option-in-kget.patch || return 1
+
+        cd ${srcdir}
        mkdir build
        cd build
        cmake ../${pkgbase}-${pkgver} \

Added: add-overwrite-option-in-kget.patch
===================================================================
--- add-overwrite-option-in-kget.patch                          (rev 0)
+++ add-overwrite-option-in-kget.patch  2009-11-02 21:21:12 UTC (rev 57871)
@@ -0,0 +1,16 @@
+--- trunk/KDE/kdenetwork/kget/core/kget.cpp    2009/09/14 12:52:57     1023303
++++ trunk/KDE/kdenetwork/kget/core/kget.cpp    2009/09/14 13:01:00     1023304
+@@ -234,8 +234,11 @@
+ 
+     if(m_transferTreeModel->findTransferByDestination(destUrl) != 0 || 
(destUrl.isLocalFile() && QFile::exists(destUrl.path()))) {
+         KIO::RenameDialog dlg( m_mainWindow, i18n("Rename transfer"), srcUrl,
+-                               destUrl, KIO::M_MULTI);
+-        if (dlg.exec() == KIO::R_RENAME)
++                               destUrl, KIO::M_OVERWRITE);
++                               
++        int result = dlg.exec();
++        
++        if ( result == KIO::R_RENAME || result == KIO::R_OVERWRITE )
+             destUrl = dlg.newDestUrl();
+         else
+             return 0;

Reply via email to