summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-13 14:22:30 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-13 14:22:54 +0100
commit8f6ecf15644b641f729c24822fcb6bb29617ef57 (patch)
tree37982fe4d55f469307af99efc28f867e75a4f891
parentf47bd0561cdf4c2b4fbe2c7e396533cf85408cb7 (diff)
tdf#95795 vcl: fix KDE5 desktop detection
Regression from commit 6c80a8fe89fadf9a2c7260a09c037a09462f53d1 (new loplugin: oncevar, 2015-11-06), KDE4 was detected as KDE5. Change-Id: If4a7a074052a31c7505f53c03a36a0975d71b3a7
-rw-r--r--vcl/unx/generic/desktopdetect/desktopdetector.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/desktopdetect/desktopdetector.cxx b/vcl/unx/generic/desktopdetect/desktopdetector.cxx
index 3c8f8bfdb218..8135164c44aa 100644
--- a/vcl/unx/generic/desktopdetect/desktopdetector.cxx
+++ b/vcl/unx/generic/desktopdetect/desktopdetector.cxx
@@ -271,7 +271,7 @@ static bool is_kde5_desktop( Display* pDisplay )
{
static const char * pFullVersion = getenv( "KDE_FULL_SESSION" );
static const char * pSessionVersion = getenv( "KDE_SESSION_VERSION" );
- if ( pFullVersion && pSessionVersion && strcmp(pSessionVersion, "5") )
+ if ( pFullVersion && pSessionVersion && strcmp(pSessionVersion, "5") == 0)
return true;
if ( KDEVersion( pDisplay ) == 5 )