commit 3b6ec13d5447d95267831ad4ee4b1210f97a7434
Author: Koji Yokota <[email protected]>
Date:   Sun Jan 25 10:15:05 2026 +0900

    Temporary fix for SIGABRT at exiting time on macOS Tahoe
    
    See https://www.mail-archive.com/[email protected]/msg225496.html
---
 src/frontends/qt/GuiApplication.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/frontends/qt/GuiApplication.cpp 
b/src/frontends/qt/GuiApplication.cpp
index e09ae95409..5dd468ef02 100644
--- a/src/frontends/qt/GuiApplication.cpp
+++ b/src/frontends/qt/GuiApplication.cpp
@@ -103,6 +103,9 @@
 #include <QMenuBar>
 #include <QMimeData>
 #include <QObject>
+#if defined(Q_OS_MACOS) && QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
+#include <QOperatingSystemVersion>
+#endif
 #include <QPainter>
 #include <QPixmap>
 #if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
@@ -1791,6 +1794,14 @@ void GuiApplication::dispatch(FuncRequest const & cmd, 
DispatchResult & dr)
                break;
 
        case LFUN_LYX_QUIT:
+               // Temporary and imperfect fix for SIGABRT at exiting time on 
macOS
+               // Tahoe. See
+               // 
https://www.mail-archive.com/[email protected]/msg225496.html
+               // FIXME: This fix should be removed once the problem is gone.
+#if defined(Q_OS_MACOS) && QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
+               if (QOperatingSystemVersion::current() >= 
QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 26))
+                               
std::this_thread::sleep_for(std::chrono::seconds(2));
+#endif
                // quitting is triggered by the gui code
                // (leaving the event loop).
                if (current_view_)
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to