KMessageBox::error() seems to hang on empty message text

Ingo Klöcker kloecker at kde.org
Sat Apr 21 22:38:57 BST 2007


On Saturday 21 April 2007 18:17, Alex Merry wrote:
> On Saturday 21 Apr 2007, Alex Merry wrote:
> > On Saturday 21 Apr 2007, Ingo Klöcker wrote:
> > > KMessageBox::error( qApp->activeWindow(), "", i18n("Error") );
> >
> > The problem is a loop in the message box creation that tries to
> > adjust the width if it is too high and narrow.  However, without
> > text, it can't adjust it sufficiently, and the loop never exits.
> >
> > Does this patch fix it for you?
>
> Sorry, rediffed against a sensible place.  You can now apply it from
> the kdelibs base directory with -p1, or just above with -p0.

Yes. This change fixes the problem.

Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070421/9572cb9c/attachment.sig>


More information about the kde-core-devel mailing list