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

Alex Merry huntedhacker at tiscali.co.uk
Sat Apr 21 17:17:47 BST 2007


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.

Alex

-- 
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmessagebox_fix.diff
Type: text/x-diff
Size: 647 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070421/52bb3e28/attachment.diff>
-------------- 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/52bb3e28/attachment.sig>


More information about the kde-core-devel mailing list