[PATCH] uiserver doesn't show progress dialog when resuming download

Lubos Lunak l.lunak at suse.cz
Tue Nov 26 15:52:06 GMT 2002


On Tuesday 26 November 2002 16:36, Waldo Bastian wrote:
> Seems to be some unfortunate sequence of events because
> 	m_defaultProgressVisible = defaultProgress &&
> defaultProgress->isVisible(); resulted in false due to
> defaultProgress->isVisible(); being false at the time
> ProgressItem::setVisible(false) was called.
>

 I don't know the code at all, so maybe this doesn't apply here, but people 
often think that isVisible() is equal to !isHidden(). For testing if show() 
has been called on a widget, one should use isShown()  (new in Qt3.1, equal 
to !isHidden()). There can be case when isShown() is true but isVisible() is 
not.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/




More information about the kfm-devel mailing list