aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor/outputpane/warningmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/scxmleditor/outputpane/warningmodel.cpp')
-rw-r--r--src/plugins/scxmleditor/outputpane/warningmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scxmleditor/outputpane/warningmodel.cpp b/src/plugins/scxmleditor/outputpane/warningmodel.cpp
index 23a406a323..2fb950d089 100644
--- a/src/plugins/scxmleditor/outputpane/warningmodel.cpp
+++ b/src/plugins/scxmleditor/outputpane/warningmodel.cpp
@@ -239,7 +239,7 @@ Warning *WarningModel::getWarning(const QModelIndex &ind)
void WarningModel::warningDestroyed(QObject *ww)
{
- auto w = static_cast<Warning*>(ww);
+ auto w = qobject_cast<Warning*>(ww);
if (m_warnings.contains(w)) {
int ind = m_warnings.indexOf(w);
beginRemoveRows(QModelIndex(), ind, ind);