KUrl or QUrl bug?

Sebastian Trüg trueg at kde.org
Fri Jun 18 15:38:15 BST 2010


On 06/18/2010 03:45 PM, David Faure wrote:
> On Thursday 17 June 2010, Sebastian Trüg wrote:
>> Hi guys,
>>
>> please find attached a patch to the kurltest which will make it fail
>> since an url on which you add a query item and then remove it are not
>> equal anymore.
> 
> Yes, because "no query" isn't the same as "an empty query", IIRC.
> So after removing the query, you have a url with "an empty query".
> Did you try calling .url() on both urls? I suppose url3 will have a trailing 
> '?'.

exactly. I just think it is unwanted behavior. What exactly is this good
for? Who would ever want to have an empty query?

Cheers,
Sebastian




More information about the kde-core-devel mailing list