]> git.lyx.org Git - features.git/commitdiff
Fix for bug #11926
authorDaniel Ramoeller <d.lyx@web.de>
Fri, 7 Aug 2020 14:13:48 +0000 (16:13 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 9 Aug 2020 10:51:45 +0000 (12:51 +0200)
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

index 06a007ca31f0ba4d316f641cf53dc597459632bf..d1d4336fc2ae9b3932f25b4866ebd803d9537ea2 100644 (file)
@@ -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();