summaryrefslogtreecommitdiffstats
path: root/kutils/kfinddialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kutils/kfinddialog.cpp')
-rw-r--r--kutils/kfinddialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kutils/kfinddialog.cpp b/kutils/kfinddialog.cpp
index bd5401c06..d27a50ff8 100644
--- a/kutils/kfinddialog.cpp
+++ b/kutils/kfinddialog.cpp
@@ -429,7 +429,7 @@ void KFindDialog::showPatterns()
if ( d->m_regexpDialog )
{
- KRegExpEditorInterface *iface = static_cast<KRegExpEditorInterface *>( d->m_regexpDialog->qt_cast( "KRegExpEditorInterface" ) );
+ KRegExpEditorInterface *iface = dynamic_cast<KRegExpEditorInterface *>( d->m_regexpDialog );
assert( iface );
iface->setRegExp( pattern() );