summaryrefslogtreecommitdiff
path: root/shortcuts
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-01-22 22:05:52 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-01-22 22:05:52 +0100
commit7b1272ec94c8d1e65f2e81fa8588dd1f1996cb00 (patch)
treee0291691df62395340594184802f99aff7b3657e /shortcuts
parent8546bdbc2c4061f8a887d8a56eb0ff3205907b28 (diff)
ShortcutController: some cleanup
(bzr r2919.3.57)
Diffstat (limited to 'shortcuts')
-rw-r--r--shortcuts/ShortcutController.cpp12
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);
});
}