-rw-r--r-- | core/launcher/desktop.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 4587ec6..da535d9 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -171,8 +171,12 @@ void DesktopApplication::receive( const QCString &msg, const QByteArray &data ) qWarning("KeyRegisterRecieved: %i, %s, %s", k, (const char*)c, (const char *)m); keyRegisterList.append(QCopKeyRegister(k,c,m)); } + else if (msg == "suspend()"){ + emit power(); + } + } enum MemState { Unknown, VeryLow, Low, Normal } memstate=Unknown; |