[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/khtml
From: Dawit Alemayehu <adawit () kde ! org>
Date: 2010-10-29 19:42:14
Message-ID: 20101029194214.D406FAC89A () svn ! kde ! org
[Download RAW message or body]
SVN commit 1191163 by adawit:
- Correctly handle the case where the query mode is set to None.
M +9 -0 khtml_ext.cpp
--- trunk/KDE/kdelibs/khtml/khtml_ext.cpp #1191162:1191163
@@ -1134,6 +1134,10 @@
{
KParts::SelectorInterface::Element element;
+ // If the specified method is None, return an empty list...
+ if (method == KParts::SelectorInterface::None)
+ return element;
+
if (!(supportedQueryMethods() & method))
return element;
@@ -1157,6 +1161,11 @@
{
QList<KParts::SelectorInterface::Element> elements;
+ // If the specified method is None, return an empty list...
+ if (method == KParts::SelectorInterface::None)
+ return elements;
+
+ // If the specified method is not supported, return an empty list...
if (!(supportedQueryMethods() & method))
return elements;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic