diff --git a/src/commands/command_p.h b/src/commands/command_p.h --- a/src/commands/command_p.h +++ b/src/commands/command_p.h @@ -37,6 +37,7 @@ #include "view/keylistcontroller.h" #include +#include #include @@ -73,7 +74,7 @@ } KeyListModelInterface *model() const { - return view_ ? dynamic_cast(view_->model()) : nullptr; + return view_ ? dynamic_cast(dynamic_cast(view_->model())) : nullptr; } KeyListController *controller() const {