summaryrefslogtreecommitdiff
path: root/core/launcher/shutdownimpl.cpp
Side-by-side diff
Diffstat (limited to 'core/launcher/shutdownimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/shutdownimpl.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/launcher/shutdownimpl.cpp b/core/launcher/shutdownimpl.cpp
index b1925d9..9292bb8 100644
--- a/core/launcher/shutdownimpl.cpp
+++ b/core/launcher/shutdownimpl.cpp
@@ -18,12 +18,13 @@
**
**********************************************************************/
#include "shutdownimpl.h"
#include <qpe/global.h>
+#include <qpe/qcopenvelope_qws.h>
#include <qtimer.h>
#include <qprogressbar.h>
#include <qpushbutton.h>
#include <qbuttongroup.h>
#include <qlabel.h>
@@ -162,7 +163,17 @@ void ShutdownImpl::timeout ( )
emit shutdown ( m_operation );
}
else
m_progress-> setProgress ( m_counter );
}
+void ShutdownImpl::hide ( )
+{
+ if ( isVisible ( )) {
+ // hack - shutdown is a launcher dialog, but treated like a standalone app
+ QCopEnvelope e( "QPE/System", "closing(QString)" );
+ e << QString ( "shutdown" );
+
+ }
+ QWidget::hide ( );
+}