mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
Forms: Don't run focusin action when gaining focus because of window management
Adobe Reader doesn't do it, and with reason, because otherwise we end up
with:
* Run focus in script
* script shows alert()
* form loses focus and gains it again once the alert() is closed
* infinite loop
The same fix we did in e457ceb731
but for
the rest of the widgets
BUGS: 472756
This commit is contained in:
parent
bba7354818
commit
f940ca1e2e
|
@ -1220,7 +1220,7 @@ void SignatureEdit::signUnsignedSignature()
|
|||
void FormClass::focusInEvent(QFocusEvent *event) \
|
||||
{ \
|
||||
Okular::Action *act = m_ff->additionalAction(Okular::Annotation::FocusIn); \
|
||||
if (act) { \
|
||||
if (act && event->reason() != Qt::ActiveWindowFocusReason) { \
|
||||
m_controller->processScriptAction(act, m_ff, Okular::Annotation::FocusIn); \
|
||||
} \
|
||||
BaseClass::focusInEvent(event); \
|
||||
|
|
Loading…
Reference in a new issue