https://bugs.documentfoundation.org/show_bug.cgi?id=129879

--- Comment #3 from Fabian Vogt <[email protected]> ---
There seems to be a mismatch between what Application::GetDesktopEnvironment()
returns and what getButtonPriority() in layout.cxx expects. This should fix it:

diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 981ac62..9c5a363 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -718,8 +718,8 @@ static int getButtonPriority(const OString &rType)
     const OUString &rEnv = Application::GetDesktopEnvironment();

     if (rEnv.equalsIgnoreAsciiCase("windows") ||
-        rEnv.equalsIgnoreAsciiCase("tde") ||
-        rEnv.startsWithIgnoreAsciiCase("kde"))
+        rEnv.equalsIgnoreAsciiCase("lxqt") ||
+        rEnv.startsWithIgnoreAsciiCase("plasma"))
     {
         pOrder = &aSaveDiscardCancel[0];
     }

LXQt uses Save/Discard/Cancel as well, so I added that and removed tde, which
is not returned anymore.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to