diff options
| author | Sami Jaktholm <sjakthol@outlook.com> | 2014-04-05 23:09:17 +0300 |
|---|---|---|
| committer | Sami Jaktholm <sjakthol@outlook.com> | 2014-04-05 23:09:17 +0300 |
| commit | a5a8ee7032d73dad5ce7253526eef20d8cf7edf6 (patch) | |
| tree | 1707d279286e79bd0645c1ed844b9b3c4d7050bb /shortcuts | |
| parent | 47cb1545895247db7d394757c33685f4d42707fe (diff) | |
Shortcuts: Listen and react to view close requests.
Fixes LP: #1297842 (bzr r3764.2.1)
Diffstat (limited to 'shortcuts')
| -rw-r--r-- | shortcuts/ShortcutController.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shortcuts/ShortcutController.cpp b/shortcuts/ShortcutController.cpp index 5f56bf99d..cdf6d69f8 100644 --- a/shortcuts/ShortcutController.cpp +++ b/shortcuts/ShortcutController.cpp @@ -157,6 +157,7 @@ void Controller::ConstructView() view_->SetModel(modeller_->GetCurrentModel()); view_->background_color = WindowManager::Default().average_color(); view_->closable = first_run(); + view_->request_close.connect(sigc::mem_fun(this, &Controller::Hide)); if (!view_window_) { |
