Fix crash: click the Remember-menu works again

This commit fixes a subtle regression introduced by myself in
f64727ca: WinClient wc = FbMenu::window()->winclient() creates a
copy and this copy gets cleaned up at the end of the scope. What
I really wanted was a reference.
This commit is contained in:
Mathias Gumz 2015-02-01 19:41:07 +01:00
parent c207226a32
commit 461d4b7dbd

View file

@ -310,7 +310,7 @@ public:
Remember& r = Remember::instance();
r.checkReload();
if (FbMenu::window() != 0) {
WinClient wc = FbMenu::window()->winClient();
WinClient& wc = FbMenu::window()->winClient();
if (isSelected()) {
r.forgetAttrib(wc, m_attrib);
} else {