SHA256
1
0
forked from pool/libreoffice
libreoffice/0001-tdf-129879-Fix-wrong-order-of-buttons.patch
2020-01-08 12:31:15 +00:00

29 lines
1011 B
Diff

From 9b51a4b02993524f42bbd4f19d982b88914b788f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com>
Date: Wed, 8 Jan 2020 13:25:05 +0100
Subject: [PATCH] tdf#129879 Fix wrong order of buttons
Change-Id: I0cb135c5b8298fd7c5579673d0eaff7068a03842
---
vcl/source/window/layout.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 981ac621aa60..9c5a36304a21 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];
}
--
2.24.1