summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/kdebase/kdebase-post-3.5.9-bookmark-global-copy.patch
diff options
context:
space:
mode:
authorTim Williams <tmw@autotrain.org>2011-10-14 13:51:18 +0100
committerTim Williams <tmw@autotrain.org>2011-10-14 13:51:18 +0100
commitec2515f058c60d2478a549f58376db628ba556b9 (patch)
treeaefbde1b807005611b397e01ebc5782c7d27ff91 /mandriva/2010.2/kdebase/kdebase-post-3.5.9-bookmark-global-copy.patch
parentbba295da1161579c6fe734680c827e50a3585131 (diff)
downloadtde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.tar.gz
tde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.zip
Initial commit of the Mandriva patches and spec files.
This includes the main dependencies and core packages, but very little else.
Diffstat (limited to 'mandriva/2010.2/kdebase/kdebase-post-3.5.9-bookmark-global-copy.patch')
-rw-r--r--mandriva/2010.2/kdebase/kdebase-post-3.5.9-bookmark-global-copy.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/mandriva/2010.2/kdebase/kdebase-post-3.5.9-bookmark-global-copy.patch b/mandriva/2010.2/kdebase/kdebase-post-3.5.9-bookmark-global-copy.patch
new file mode 100644
index 000000000..ef7d8daf1
--- /dev/null
+++ b/mandriva/2010.2/kdebase/kdebase-post-3.5.9-bookmark-global-copy.patch
@@ -0,0 +1,27 @@
+--- kdebase-3.5.9/libkonq/konqbookmarkmanager.h.orig 2008-03-07 14:56:36.000000000 -0300
++++ kdebase-3.5.9/libkonq/konqbookmarkmanager.h 2008-03-07 16:36:04.000000000 -0300
+@@ -3,6 +3,8 @@
+
+ #include <kbookmarkmanager.h>
+ #include <kstandarddirs.h>
++#include <kurl.h>
++#include <kio/job.h>
+ #include <libkonq_export.h>
+
+ class LIBKONQ_EXPORT KonqBookmarkManager
+@@ -11,7 +13,14 @@
+ static KBookmarkManager * self() {
+ if ( !s_bookmarkManager )
+ {
+- TQString bookmarksFile = locateLocal("data", TQString::fromLatin1("konqueror/bookmarks.xml"));
++ TQString globalBookmarkFile = locate( "data", TQString::fromLatin1( "konqueror/bookmarks.xml" ) );
++ TQString bookmarksFile = locateLocal("data", TQString::fromLatin1("konqueror/bookmarks.xml"), true);
++ if ( globalBookmarkFile != TQString::null && bookmarksFile == TQString::null )
++ KIO::file_copy(
++ KURL::fromPathOrURL( globalBookmarkFile ),
++ KURL::fromPathOrURL( bookmarksFile ), -1, false, false
++ );
++
+ s_bookmarkManager = KBookmarkManager::managerForFile( bookmarksFile );
+ }
+ return s_bookmarkManager;