diff options
author | Timothy Pearson <[email protected]> | 2013-01-18 14:36:02 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-18 14:36:02 -0600 |
commit | cf9a9af6a8c3606e8d1e1372ea78332f4b69309e (patch) | |
tree | 2dc86582a9272a7db97b1d2978b31aef4b7d8c5e /ksmserver | |
parent | f6095d86a621538298e764b710344c3e50ecc9e8 (diff) | |
download | tdebase-cf9a9af6a8c3606e8d1e1372ea78332f4b69309e.tar.gz tdebase-cf9a9af6a8c3606e8d1e1372ea78332f4b69309e.zip |
Properly restore icon positions on login
Diffstat (limited to 'ksmserver')
-rw-r--r-- | ksmserver/shutdowndlg.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ksmserver/shutdowndlg.cpp b/ksmserver/shutdowndlg.cpp index 3b1e27f68..5be3f70a2 100644 --- a/ksmserver/shutdowndlg.cpp +++ b/ksmserver/shutdowndlg.cpp @@ -792,15 +792,17 @@ KSMShutdownDlg::KSMShutdownDlg( TQWidget* parent, TQValueList<TQT_DBusData> params; params << TQT_DBusData::fromString(upowerProperties.interface()) << TQT_DBusData::fromString("CanSuspend"); TQT_DBusMessage reply = upowerProperties.sendWithReply("Get", params); - if(reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) + if(reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) { canSuspend = reply[0].toVariant().value.toBool(); + } // can hibernate? params.clear(); params << TQT_DBusData::fromString(upowerProperties.interface()) << TQT_DBusData::fromString("CanHibernate"); reply = upowerProperties.sendWithReply("Get", params); - if(reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) + if(reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) { canHibernate = reply[0].toVariant().value.toBool(); + } #else #ifdef COMPILE_HALBACKEND // Query HAL for suspend/resume support |