Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Workspace
Commits
7a01d55b
Commit
7a01d55b
authored
Mar 12, 2013
by
Lukáš Tinkl
Browse files
stop leaking the login1 suspend job
BUG: 316473 FIXED-IN: 4.10.2
parent
b6faef2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
powerdevil/daemon/backends/upower/login1suspendjob.cpp
View file @
7a01d55b
...
...
@@ -35,6 +35,8 @@ Login1SuspendJob::Login1SuspendJob(QDBusInterface *login1Interface,
kDebug
()
<<
"Starting Login1 suspend job"
;
m_method
=
method
;
m_supported
=
supported
;
connect
(
m_login1Interface
,
SIGNAL
(
PrepareForSleep
(
bool
)),
this
,
SLOT
(
slotLogin1Resuming
(
bool
)));
}
Login1SuspendJob
::~
Login1SuspendJob
()
...
...
@@ -95,5 +97,11 @@ void Login1SuspendJob::sendResult(QDBusPendingCallWatcher *watcher)
watcher
->
deleteLater
();
}
void
Login1SuspendJob
::
slotLogin1Resuming
(
bool
active
)
{
if
(
!
active
)
emitResult
();
}
#include "login1suspendjob.moc"
powerdevil/daemon/backends/upower/login1suspendjob.h
View file @
7a01d55b
...
...
@@ -44,6 +44,7 @@ public:
private
Q_SLOTS
:
void
doStart
();
void
sendResult
(
QDBusPendingCallWatcher
*
watcher
);
void
slotLogin1Resuming
(
bool
active
);
private:
QDBusInterface
*
m_login1Interface
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment