From kde-core-devel Sun Nov 04 17:25:40 2001 From: blackie () blackie ! dk (Jesper K ! Pedersen) Date: Sun, 04 Nov 2001 17:25:40 +0000 To: kde-core-devel Subject: Re: Who has insert the KRegEditor stuff into many kdebase apps ? X-MARC-Message: https://marc.info/?l=kde-core-devel&m=100489475313744 Christoph Cullmann writes: | Am Sunday 04 November 2001 15:13 schrieb Jesper K. Pedersen: | > Christoph Cullmann writes: | > | But the QASSERT in the code is the wrong way ! | > | > Which version are you using? Where do you see a QASSERT? | Not in your app, but in the code you insert for example in kate/kwrite. Right, but where? Are you talking about void SearchDialog::slotEditRegExp() { KRegExpEditorInterface *iface = dynamic_cast( m_regExpDialog ); Q_ASSERT( iface ); ^^^^^^ This slot is only invoked if the button is pressed and the button only exists if the regular expression editor was found. The above assert can only fail if there is an internal error in the regular expression editor, namely if it does not offer a KRegExpEditorInterface, which it does.