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:
parent
c207226a32
commit
461d4b7dbd
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue