summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2024-07-10 12:06:51 +0300
committerMavridis Philippe <[email protected]>2024-08-01 13:00:28 +0300
commit88a090066be5f7c0d9611b88eb8f27902e1409ed (patch)
treea4934c9ba468007531ab34a9403673b48767c1f2
parent95837cc844210a35b3374bbe707cb82920b80a9b (diff)
downloadtdebase-88a090066be5f7c0d9611b88eb8f27902e1409ed.tar.gz
tdebase-88a090066be5f7c0d9611b88eb8f27902e1409ed.zip
KSMServer: reload power-managerrc settings every time before they are needed
Signed-off-by: Mavridis Philippe <[email protected]>
-rw-r--r--ksmserver/server.cpp2
-rw-r--r--ksmserver/shutdown.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/ksmserver/server.cpp b/ksmserver/server.cpp
index 2cfb2e671..dea7c0599 100644
--- a/ksmserver/server.cpp
+++ b/ksmserver/server.cpp
@@ -933,6 +933,8 @@ void KSMServer::storeSession()
TQStringList KSMServer::suspendOptions()
{
+ reconfigure();
+
TQStringList sopt;
#ifdef WITH_TDEHWLIB
diff --git a/ksmserver/shutdown.cpp b/ksmserver/shutdown.cpp
index 0b711e53f..23ba4977b 100644
--- a/ksmserver/shutdown.cpp
+++ b/ksmserver/shutdown.cpp
@@ -330,6 +330,8 @@ bool KSMServer::suspend(int stype)
if (stype == SuspendType::NotSpecified)
return false;
+ reconfigure();
+
#ifdef WITH_TDEHWLIB
TDERootSystemDevice* rootDevice = hwDevices->rootSystemDevice();
if (rootDevice) {