Gentoo Archives: gentoo-commits

From: "Johannes Huber (johu)" <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/dolphin/files: dolphin-4.11.3-regression.patch
Date: Sat, 09 Nov 2013 13:43:56
Message-Id: 20131109134352.C203B2004E@flycatcher.gentoo.org
1 johu 13/11/09 13:43:52
2
3 Added: dolphin-4.11.3-regression.patch
4 Log:
5 Revision bump adds upstream patch announced on packagers ml. Patch fixes clicking the trash plasmoid or starting Dolphin from the command line with a URL that includes another kioslave will just open the home folder.
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD)
8
9 Revision Changes Path
10 1.1 kde-base/dolphin/files/dolphin-4.11.3-regression.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/dolphin/files/dolphin-4.11.3-regression.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/dolphin/files/dolphin-4.11.3-regression.patch?rev=1.1&content-type=text/plain
14
15 Index: dolphin-4.11.3-regression.patch
16 ===================================================================
17 commit 1c856e44774a7ce8eb6dce6828ef689647f83ca4
18 Author: Wolfgang Bauer <wbauer@×××.at>
19 Date: Wed Nov 6 16:46:09 2013 +0100
20
21 Revert "Files passed as arguments: Ignore unsupported files"
22
23 This reverts commit cd9e50ae4f3ded5a78d0cfb09a67684a9c15d726.
24
25 See bug#327224 for details.
26
27 diff --git a/dolphin/src/dolphinmainwindow.cpp b/dolphin/src/dolphinmainwindow.cpp
28 index 9da73f9..b477600 100644
29 --- a/dolphin/src/dolphinmainwindow.cpp
30 +++ b/dolphin/src/dolphinmainwindow.cpp
31 @@ -31,7 +31,6 @@
32 #include "panels/information/informationpanel.h"
33 #include "settings/dolphinsettingsdialog.h"
34 #include "statusbar/dolphinstatusbar.h"
35 -#include "views/dolphinview.h"
36 #include "views/dolphinviewactionhandler.h"
37 #include "views/dolphinremoteencoding.h"
38 #include "views/draganddrophelper.h"
39 @@ -244,20 +243,8 @@ void DolphinMainWindow::openDirectories(const QList<KUrl>& dirs)
40 return;
41 }
42
43 - // dirs could contain URLs that actually point to archives or other files.
44 - // Replace them by URLs we can open where possible and filter the rest out.
45 - QList<KUrl> urlsToOpen;
46 - foreach (const KUrl& rawUrl, dirs) {
47 - const KFileItem& item = KFileItem(KFileItem::Unknown, KFileItem::Unknown, rawUrl);
48 - item.determineMimeType();
49 - const KUrl& url = DolphinView::openItemAsFolderUrl(item);
50 - if (!url.isEmpty()) {
51 - urlsToOpen.append(url);
52 - }
53 - }
54 -
55 - if (urlsToOpen.count() == 1) {
56 - m_activeViewContainer->setUrl(urlsToOpen.first());
57 + if (dirs.count() == 1) {
58 + m_activeViewContainer->setUrl(dirs.first());
59 return;
60 }
61
62 @@ -267,12 +254,12 @@ void DolphinMainWindow::openDirectories(const QList<KUrl>& dirs)
63
64 // Open each directory inside a new tab. If the "split view" option has been enabled,
65 // always show two directories within one tab.
66 - QList<KUrl>::const_iterator it = urlsToOpen.begin();
67 - while (it != urlsToOpen.end()) {
68 + QList<KUrl>::const_iterator it = dirs.begin();
69 + while (it != dirs.end()) {
70 openNewTab(*it);
71 ++it;
72
73 - if (hasSplitView && (it != urlsToOpen.end())) {
74 + if (hasSplitView && (it != dirs.end())) {
75 const int tabIndex = m_viewTab.count() - 1;
76 m_viewTab[tabIndex].secondaryView->setUrl(*it);
77 ++it;