[LyX/master] Remove an old workaround
Koji Yokota
yokota at lyx.org
Thu Jun 25 00:59:27 UTC 2026
commit 2ca8f530389f8626d28bca128308b1b754364214
Author: Koji Yokota <yokota at lyx.org>
Date: Sat Jun 20 08:28:11 2026 +0900
Remove an old workaround
QInputMethod::locale() now works on Qt 5.15.13 and 6.11.0 on Linux
---
src/frontends/qt/GuiInputMethod.cpp | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/frontends/qt/GuiInputMethod.cpp b/src/frontends/qt/GuiInputMethod.cpp
index e9a28b84ba..0010e13a93 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -134,13 +134,6 @@ GuiInputMethod::~GuiInputMethod()
void GuiInputMethod::toggleInputMethodAcceptance()
{
- if (guiApp->platformName() != "cocoa")
- // Since QInputMethod::locale() doesn't work on other systems, use
- // language at the cursor point to infer the current input language
- // as a second best
- d->im_off_in_math_ =
- d->cur_->getFont().language()->inputMethodOffInMath();
-
// note that d->cur_->inset() is a cache so it lags from actual key moves
bool enabled = !((d->im_off_in_math_
&& d->cur_->inset().currentMode() == Inset::MATH_MODE)
More information about the lyx-cvs
mailing list