summaryrefslogtreecommitdiffstats
path: root/tdecore/kurl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/kurl.cpp')
-rw-r--r--tdecore/kurl.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tdecore/kurl.cpp b/tdecore/kurl.cpp
index 0b5f88c3d..7fd8ad26a 100644
--- a/tdecore/kurl.cpp
+++ b/tdecore/kurl.cpp
@@ -1183,6 +1183,11 @@ bool KURL::cmp( const KURL &u, bool ignore_trailing ) const
bool KURL::equals( const KURL &_u, bool ignore_trailing ) const
{
+ return equals(_u, ignore_trailing, false);
+}
+
+bool KURL::equals( const KURL &_u, bool ignore_trailing, bool ignore_internalReferenceURLS ) const
+{
if ( !isValid() || !_u.isValid() )
return false;
@@ -1200,7 +1205,7 @@ bool KURL::equals( const KURL &_u, bool ignore_trailing ) const
m_strQuery_encoded == _u.m_strQuery_encoded &&
m_strRef_encoded == _u.m_strRef_encoded &&
m_iPort == _u.m_iPort &&
- d->m_strInternalReferenceURL == _u.d->m_strInternalReferenceURL )
+ ((ignore_internalReferenceURLS) || (d->m_strInternalReferenceURL == _u.d->m_strInternalReferenceURL)) )
return true;
return false;