diff --git a/src/categorizedhistorymodel.cpp b/src/categorizedhistorymodel.cpp
index 310e807b094efcad2b6c5f0c8afc074a736c7a32..cc6fc86612dee1aff7bd756162b773aa27ba5c49 100644
--- a/src/categorizedhistorymodel.cpp
+++ b/src/categorizedhistorymodel.cpp
@@ -442,7 +442,7 @@ QVariant CategorizedHistoryModel::data( const QModelIndex& idx, int role) const
          #if QT_VERSION >= 0x050400
          if (parTli->isActive() && !parTli->m_lChildren[idx.row()]->call()->isActive()) {
             QTimer::singleShot(0,[this,idx]() {
-               emit dataChanged(idx,idx);
+               emit const_cast<CategorizedHistoryModel*>(this)->dataChanged(idx,idx);
             });
          }
          #endif