diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-01-22 22:05:52 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-01-22 22:05:52 +0100 |
| commit | 7b1272ec94c8d1e65f2e81fa8588dd1f1996cb00 (patch) | |
| tree | e0291691df62395340594184802f99aff7b3657e | |
| parent | 8546bdbc2c4061f8a887d8a56eb0ff3205907b28 (diff) | |
ShortcutController: some cleanup
(bzr r2919.3.57)
| -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); }); } |
