From d3a04c089b5e7345a6d5557dd99392a42cc0b83a Mon Sep 17 00:00:00 2001 From: Daniel Ramoeller Date: Fri, 7 Aug 2020 16:13:48 +0200 Subject: [PATCH] Fix for bug #11926 Change comobox signal to user interaction only to avoid problems with "Apply changes immediately" aka "Immediate Apply". (See https://doc.qt.io/qt-5/qcombobox.html#currentIndexChanged and https://doc.qt.io/qt-5/qcombobox.html#activated.) --- src/frontends/qt/GuiCharacter.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/frontends/qt/GuiCharacter.cpp b/src/frontends/qt/GuiCharacter.cpp index 06a007ca31..d1d4336fc2 100644 --- a/src/frontends/qt/GuiCharacter.cpp +++ b/src/frontends/qt/GuiCharacter.cpp @@ -221,14 +221,14 @@ GuiCharacter::GuiCharacter(GuiView & lv) connect(autoapplyCB, SIGNAL(stateChanged(int)), this, SLOT(slotAutoApply())); - connect(ulineCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor())); - connect(strikeCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor())); - connect(sizeCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor())); - connect(familyCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor())); - connect(seriesCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor())); - connect(shapeCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor())); - connect(colorCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor())); - connect(langCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor())); + connect(ulineCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); + connect(strikeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); + connect(sizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); + connect(familyCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); + connect(seriesCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); + connect(shapeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); + connect(colorCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); + connect(langCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); family = familyData(); series = seriesData(); -- 2.39.5