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

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


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?

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: 581 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070421/fda0bff8/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/fda0bff8/attachment.sig>


More information about the kde-core-devel mailing list