- Bugfix to call History::notify_change when reenabling notifications
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@830 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
0138387a7f
commit
e975bfdd0b
|
@ -70,7 +70,12 @@ History::notify_change()
|
|||
bool
|
||||
History::set_notify_enabled(bool enabled)
|
||||
{
|
||||
bool r = _notify;
|
||||
bool old_value = _notify;
|
||||
_notify = enabled;
|
||||
return r;
|
||||
|
||||
// Force notify if we re-enable it
|
||||
if(old_value == false && _notify == true)
|
||||
notify_change();
|
||||
|
||||
return old_value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue