Image frame bugs (trunk4.4) and possible solutions

Sebastian Kügler sebas at kde.org
Wed Aug 12 23:11:46 CEST 2009


On Wednesday 12 August 2009 20:21:16 Darío Andrés wrote:
> 2009/8/12 Darío Andrés <andresbajotierra at gmail.com>:
> > * Issue 1:
> >
> > In Frame, when a URL is not passed to the widget constructor it
> > creates an empty KUrl for "m_currentUrl" and that determines the frame
> > will use the "Default" image until a custom image url is set.
> > However, in the code, there are checks for "KUrl("Default")" which in
> > fact isn't there; so an empty(default) image is not detected; and this
> > causes some bugs (as: the "Open Image" menu option is shown and
> > enabled; and when it is clicked it fails as it tries to run KRun(empty
> > KUrl);
> >
> > Proposed fix:
> > Use KUrl() (empty) and KUrl::isEmpty to check for the Default image
> > (see attached patch)
>
> I forgot to attach the patch...

Patch looks sane, please commit :)
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090812/d59f22c7/attachment.sig 


More information about the Plasma-devel mailing list