Fix case where a context ends up locked in no-hooks mode
This commit is contained in:
parent
fab9c92006
commit
3f733569ed
|
@ -103,8 +103,11 @@ public:
|
||||||
m_count /= 10;
|
m_count /= 10;
|
||||||
else if (key == '\\')
|
else if (key == '\\')
|
||||||
{
|
{
|
||||||
m_hooks_disabled = true;
|
if (not m_hooks_disabled)
|
||||||
context().disable_user_hooks();
|
{
|
||||||
|
m_hooks_disabled = true;
|
||||||
|
context().disable_user_hooks();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user