blob: c2d9a10c4474139e3953efd16fd882b9cba25070 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
}
|