PATCH: KFileDialog and Password caching

Dawit A. adawit at
Tue Dec 31 06:11:38 GMT 2002

On Monday 30 December 2002 21:05, Carsten Pfeiffer wrote:
> On Tuesday 31 December 2002 02:37, Dawit A. wrote:
> > Nope.  It would work fine with "this" as well.  However, the cached
> > password will be removed as soon as the last window referencing it is
> > closed.  In this case it would be when you close the file widget after
> > using it.  That defeats the purpose of having the password cache since
> > you would probably want to cache it for the lifetime of the application. 
> > So I simply assumed that if I use topLevelWidget (),  I would get the
> > container the KFileDialog widget. And even if that is not the case,  I
> > would end up with "this" :)
> Ah, thanks for explaining this. What about QApplication::mainWidget() then?

Indeed we can use that as well, but mainWidget() can return NULL ; so perhaps 
the following patch is better ?

Dawit A.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdiroperator.diff
Type: text/x-diff
Size: 705 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list