summaryrefslogtreecommitdiff
path: root/audio/lmms/files/patch-src_gui_MainApplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/lmms/files/patch-src_gui_MainApplication.cpp')
-rw-r--r--audio/lmms/files/patch-src_gui_MainApplication.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/audio/lmms/files/patch-src_gui_MainApplication.cpp b/audio/lmms/files/patch-src_gui_MainApplication.cpp
new file mode 100644
index 000000000000..d94bc5bd4c30
--- /dev/null
+++ b/audio/lmms/files/patch-src_gui_MainApplication.cpp
@@ -0,0 +1,21 @@
+--- src/gui/MainApplication.cpp.orig 2023-06-17 16:02:33 UTC
++++ src/gui/MainApplication.cpp
+@@ -35,6 +35,18 @@
+ QApplication(argc, argv),
+ m_queuedFile()
+ {
++#if !defined(LMMS_BUILD_WIN32) && !defined(LMMS_BUILD_APPLE) && !defined(LMMS_BUILD_HAIKU) && QT_VERSION >= 0x050000
++ // Work around a bug of KXmlGui < 5.55
++ // which breaks the recent files menu
++ // https://bugs.kde.org/show_bug.cgi?id=337491
++ for (auto child : children())
++ {
++ if (child->inherits("KCheckAcceleratorsInitializer"))
++ {
++ delete child;
++ }
++ }
++#endif
+ #if defined(LMMS_BUILD_WIN32) && QT_VERSION >= 0x050000
+ installNativeEventFilter(this);
+ #endif