summaryrefslogtreecommitdiff
path: root/konqueror/konqueror-embedded-20030705/useragent.patch
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
committerChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
commitf96441b9faf769c9ecdd4d338b605ea3d0cc4010 (patch)
treeedb17ec2c4ea13c5acb1c7350957a249a820e28d /konqueror/konqueror-embedded-20030705/useragent.patch
parentb6588aa6851fb220cedc387d21c51513ef8d67f4 (diff)
Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches.
BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA
Diffstat (limited to 'konqueror/konqueror-embedded-20030705/useragent.patch')
-rw-r--r--konqueror/konqueror-embedded-20030705/useragent.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/konqueror/konqueror-embedded-20030705/useragent.patch b/konqueror/konqueror-embedded-20030705/useragent.patch
index e69de29bb2..c2d9a10c44 100644
--- a/konqueror/konqueror-embedded-20030705/useragent.patch
+++ b/konqueror/konqueror-embedded-20030705/useragent.patch
@@ -0,0 +1,27 @@
+--- konqueror-embedded-snapshot-20030705/konq-embed/dropin/kio/slavebase.cpp.old 2002-11-17 15:55:22.000000000 +0100
++++ konqueror-embedded-snapshot-20030705/konq-embed/dropin/kio/slavebase.cpp 2004-08-23 20:47:06.000000000 +0200
+@@ -398,8 +398,8 @@
+
+ if ( m_config.find( key ) != m_config.end() )
+ return true;
+-
+- return false;
++
++ return key == QString::fromLatin1("UserAgent");
+ }
+
+ QString SlaveBase::metaData( const QString &key ) const
+@@ -410,7 +410,12 @@
+ {
+ it = m_config.find( key );
+
+- if ( it == m_config.end() )
++ /*
++ * special case in hasMetaData and metaData
++ */
++ if ( it == m_config.end() && key == QString::fromLatin1("UserAgent") )
++ return KProtocolManager::defaultUserAgent("me");
++ else
+ return QString::null;
+ }
+