[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Thu Jan 12 15:08:59 UTC 2017
vcl/source/window/layout.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 2d93108082298f3e5dea7ffba146bbcdf28653c2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jan 12 15:08:15 2017 +0000
don't check every possible kde variant, startswith kde is good enough
Change-Id: I7fb9d22af32ad5bab2deedfc993e1ffaebd57111
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index fef9d4e..cd18eb3 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -848,10 +848,8 @@ static int getButtonPriority(const OString &rType)
const OUString &rEnv = Application::GetDesktopEnvironment();
if (rEnv.equalsIgnoreAsciiCase("windows") ||
- rEnv.equalsIgnoreAsciiCase("kde5") ||
- rEnv.equalsIgnoreAsciiCase("kde4") ||
rEnv.equalsIgnoreAsciiCase("tde") ||
- rEnv.equalsIgnoreAsciiCase("kde"))
+ rEnv.startsWithIgnoreAsciiCase("kde"))
{
pOrder = &aSaveDiscardCancel[0];
}
More information about the Libreoffice-commits
mailing list