summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-10 07:17:38 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-10 07:17:38 (GMT)
commit80f88fd3026e10afa057be969db734486be6cd1b (patch)
tree67952b8e53286a81b2031e1e96e23d0076ad7472
parentbabf02527b6af13a5ee6a41d18f2fdc67415fce8 (diff)
USe qobject_cast
-rw-r--r--src/ksieveui/autocreatescripts/sievescripttabwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ksieveui/autocreatescripts/sievescripttabwidget.cpp b/src/ksieveui/autocreatescripts/sievescripttabwidget.cpp
index 9b73fa7..5d8b890 100644
--- a/src/ksieveui/autocreatescripts/sievescripttabwidget.cpp
+++ b/src/ksieveui/autocreatescripts/sievescripttabwidget.cpp
@@ -52,7 +52,7 @@ void SieveScriptTabWidget::slotTabContextMenuRequest(const QPoint &pos)
return;
}
- SieveWidgetPageAbstract *page = dynamic_cast<SieveWidgetPageAbstract *>(w);
+ SieveWidgetPageAbstract *page = qobject_cast<SieveWidgetPageAbstract *>(w);
if (!page) {
return;
}