diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-12 15:08:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-12 15:08:33 +0000 |
commit | 2d93108082298f3e5dea7ffba146bbcdf28653c2 (patch) | |
tree | d63a7573d23757be8982c6eebb0a0d638171d2e8 /vcl | |
parent | 7a75b39273de47190b7a1fa20e0bcaca6d089033 (diff) |
don't check every possible kde variant, startswith kde is good enough
Change-Id: I7fb9d22af32ad5bab2deedfc993e1ffaebd57111
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/layout.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index fef9d4efb587..cd18eb3c4397 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]; } |