diff options
| -rw-r--r-- | shortcuts/ShortcutController.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shortcuts/ShortcutController.cpp b/shortcuts/ShortcutController.cpp index cb2c4d8ff..2d4e9f26f 100644 --- a/shortcuts/ShortcutController.cpp +++ b/shortcuts/ShortcutController.cpp @@ -66,13 +66,13 @@ Controller::Controller(BaseWindowRaiser::Ptr const& base_window_raiser, }); modeller->model_changed.connect([this] (Model::Ptr const& model) { - if (view_) - { - if (visible_) - model->Fill(); + if (!view_) + return; - view_->SetModel(model); - } + if (visible_) + model->Fill(); + + view_->SetModel(model); }); } |
