aboutsummaryrefslogtreecommitdiffstats
path: root/src/qt5gtk2-style/qgtkstyle_p.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-10-01 22:15:28 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-10-01 22:15:28 -0400
commitb4aec80fb155d11cde43352cf92090ee593807c5 (patch)
treebeb8d157a191d12bacb4aaa35b665c94f4df6269 /src/qt5gtk2-style/qgtkstyle_p.cpp
parentd34bb25414f6887dd788a4f817b4da903570e66a (diff)
New upstream version 1.0.upstream/1.0upstream
Diffstat (limited to 'src/qt5gtk2-style/qgtkstyle_p.cpp')
-rw-r--r--src/qt5gtk2-style/qgtkstyle_p.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt5gtk2-style/qgtkstyle_p.cpp b/src/qt5gtk2-style/qgtkstyle_p.cpp
index 4ac2a2b..1bdf58c 100644
--- a/src/qt5gtk2-style/qgtkstyle_p.cpp
+++ b/src/qt5gtk2-style/qgtkstyle_p.cpp
@@ -1,6 +1,6 @@
/***************************************************************************
* Copyright (C) 2015 The Qt Company Ltd. *
- * Copyright (C) 2016-2022 Ilya Kotov, forkotov02@ya.ru *
+ * Copyright (C) 2016-2023 Ilya Kotov, forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -386,7 +386,7 @@ bool QGtkStylePrivate::isKDE4Session()
{
static int version = -1;
if (version == -1)
- version = qgetenv("KDE_SESSION_VERSION").toInt();
+ version = qEnvironmentVariableIntValue("KDE_SESSION_VERSION");
return (version == 4);
}