diff options
Diffstat (limited to 'qt/ScintillaEditBase/ScintillaQt.cpp')
| -rw-r--r-- | qt/ScintillaEditBase/ScintillaQt.cpp | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/qt/ScintillaEditBase/ScintillaQt.cpp b/qt/ScintillaEditBase/ScintillaQt.cpp index cf4709a0e..8aebb9521 100644 --- a/qt/ScintillaEditBase/ScintillaQt.cpp +++ b/qt/ScintillaEditBase/ScintillaQt.cpp @@ -380,10 +380,12 @@ void ScintillaQt::NotifyChange()  void ScintillaQt::NotifyFocus(bool focus)  { -	emit command( -			Platform::LongFromTwoShorts -					(GetCtrlID(), focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS), -			reinterpret_cast<sptr_t>(wMain.GetID())); +	if (commandEvents) { +		emit command( +				Platform::LongFromTwoShorts +						(GetCtrlID(), focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS), +				reinterpret_cast<sptr_t>(wMain.GetID())); +	}  	Editor::NotifyFocus(focus);  } | 
