vcl/source/window/layout.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 2d93108082298f3e5dea7ffba146bbcdf28653c2 Author: Caolán McNamara <caol...@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]; }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits