From kfm-devel Thu Jul 31 08:18:04 1997 From: Martin Jones Date: Thu, 31 Jul 1997 08:18:04 +0000 To: kfm-devel Subject: Re: bug in khtmlw X-MARC-Message: https://marc.info/?l=kfm-devel&m=88721887600283 Stephan Kulow wrote: > > Martin Jones wrote: > > > > weis@stud.uni-frankfurt.de wrote: > > > > > > This is my fault. Sorry :-) > > > > > > > There is nothing wrong with if ( !url.isNull() && url[0] != 0 ) > > but if ( !url.isEmpty() ) is shorter and does the same thing :-) > > > Are you sure, that it works? You must know, since days now, I run kfm > only in a gdb session and a SIGSEV stoped kfm exactly in this line. > Since the url object is defined, it could only be the reference to the > data, that is missing. I don't want to blame somebody ;), but I think, > this should be discussed, so we can learn for the next time! > Have a look at the examples for QString::isNull() in the Qt docs. If QString.data() is NULL, length == 0. isEmpty() returns true if length == 0. -- bye, Martin Jones mjones@kde.org