[prev in list] [next in list] [prev in thread] [next in thread]
List: kopete-devel
Subject: Re: [Kopete-devel] Patch: using password when connection to IRC
From: Martijn Klingens <klingens () kde ! org>
Date: 2003-09-30 13:59:15
[Download RAW message or body]
On Tuesday 30 September 2003 14:49, Jason Keirstead wrote:
> On September 30, 2003 9:29 am, Martijn Klingens wrote:
> > On Tuesday 30 September 2003 13:57, Jason Keirstead wrote:
> > > Nevertheless this needs to say !( m_Passwd.isNull() ||
> > > m_Passwd.isEmpty() )
> >
> > Eh, no, isNull implies isEmpty, but not the other way round. See the Qt
> > docs (qt:qstring in konq ;) for details.
>
> Exactly the point, a QString can be Empty and not null so you have to check
> if it is Empty. (??)
Yes, just check for emptiness and you get nulls as well, so instead of
!( m_Passwd.isNull() || m_Passwd.isEmpty() )
just use
!m_Passwd.isEmpty()
> It's not going to be null most of the time since they
> checked the save password box. (The only way to get a null QString from
> password() is to hit cancel )
True.
--
Martijn
_______________________________________________
Kopete-devel mailing list
Kopete-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic