From kde-core-devel Tue Aug 10 14:07:26 2004 From: Ian Reinhart Geiser Date: Tue, 10 Aug 2004 14:07:26 +0000 To: kde-core-devel Subject: Re: very uncool KJSDebugDialog bug Message-Id: <200408101007.26762.ian () geiseri ! com> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=109214689428956 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-00=_eaNGBSEU7oHr5Wq" --Boundary-00=_eaNGBSEU7oHr5Wq Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 10 August 2004 09:51 am, David Faure wrote: > The main change is =A0arg(a,b,c) instead of arg(a).arg(b).arg(c). > The QString::number is simply there because multi-arg needs strings. > Please try the change, it should fix your problem :) [...] > See above. Ah, now I see now, that makes more sense. Okay here is the patch. Cheers -ian reinhart geiser =2D-=20 =2D-----(Ian Reinhart Geiser)---------- =46ighting time, so hard I pray that this moment will last forever, and wil= l the=20 world stay standing still at least for me. =2DVNV Nation, Standing --Boundary-00=_eaNGBSEU7oHr5Wq Content-Type: text/x-diff; charset="iso-8859-1"; name="kjs_debug_bonzo_dialog.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kjs_debug_bonzo_dialog.patch" Index: kjs_debugwin.cpp =================================================================== RCS file: /home/kde/kdelibs/khtml/ecma/kjs_debugwin.cpp,v retrieving revision 1.38 diff -u -u -r1.38 kjs_debugwin.cpp --- kjs_debugwin.cpp 6 Dec 2003 12:58:45 -0000 1.38 +++ kjs_debugwin.cpp 10 Aug 2004 14:06:22 -0000 @@ -57,6 +57,7 @@ #include #include #include +#include #include "kjs_dom.h" #include "kjs_binding.h" @@ -830,9 +831,9 @@ Context ctx = m_execs[m_execsCount-1]->context(); SourceFragment *sourceFragment = m_sourceFragments[ctx.sourceId()]; QString msg = i18n("An error occurred while attempting to run a script on this page.\n\n%1 line %2:\n%3") - .arg(sourceFragment->sourceFile->url) - .arg(sourceFragment->baseLine+ctx.curStmtFirstLine()-1) - .arg(exceptionMsg); + .arg(KStringHandler::rsqueeze( sourceFragment->sourceFile->url,80), + QString::number( sourceFragment->baseLine+ctx.curStmtFirstLine()-1), + exceptionMsg); KJSErrorDialog dlg(dlgParent,msg,true); dlg.exec(); --Boundary-00=_eaNGBSEU7oHr5Wq--