summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-09 16:21:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-07-09 20:57:29 +0200
commitcaae3b77b23c382f58c1b0dd47ce8ed5d4ccad3b (patch)
tree38524f6bc7505dcc06046dd85875b3d7ac8e9a59
parent6a1ed1e5cdb9f56fc8c7278b7361c7b2aa200bb8 (diff)
gtk4: disregard insert-text signal if it happens while the popup is shown
otherwise we lose our selection Change-Id: I2be572262528e9bcd12fcb0bc35bf9094f91b990 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118694 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index cd3fd1b5bc84..cd61f4e683d2 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -17445,6 +17445,9 @@ private:
void signal_entry_insert_text(GtkEntry* pEntry, const gchar* pNewText, gint nNewTextLength, gint* position)
{
+ if (m_bPopupActive) // not entered by the user
+ return;
+
// first filter inserted text
if (m_aEntryInsertTextHdl.IsSet())
{
@@ -17459,6 +17462,7 @@ private:
}
g_signal_stop_emission_by_name(pEntry, "insert-text");
}
+
if (m_bAutoComplete)
{
// now check for autocompletes