From 1ecaa166126baf48c1ed280963b421d70e1afcda Mon Sep 17 00:00:00 2001
From: mickeyl <mickeyl>
Date: Sun, 12 Sep 2004 15:05:47 +0000
Subject: show text label and remove bogus sleep

---
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index ca90427..e1edd4c 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -1949,24 +1949,15 @@ void QPEApplication::internalSetStyle( const QString &style )
 void QPEApplication::prepareForTermination( bool willrestart )
 {
     if ( willrestart ) {
-        // Draw a big wait icon, the image can be altered in later revisions
-        //  QWidget *d = QApplication::desktop();
-        QImage img = Resource::loadImage( "launcher/new_wait" );
-        QPixmap pix;
-        pix.convertFromImage( img.smoothScale( 1 * img.width(), 1 * img.height() ) );
-        QLabel *lblWait = new QLabel( 0, "wait hack!", QWidget::WStyle_Customize |
+        QLabel *lblWait = new QLabel( tr( "Please wait..." ), 0, "wait hack", QWidget::WStyle_Customize |
                                       QWidget::WStyle_NoBorder | QWidget::WStyle_Tool );
-        lblWait->setPixmap( pix );
         lblWait->setAlignment( QWidget::AlignCenter );
         lblWait->show();
         lblWait->showMaximized();
     }
-#ifndef SINGLE_APP
     { QCopEnvelope envelope( "QPE/System", "forceQuit()" );
     }
     processEvents(); // ensure the message goes out.
-    sleep( 1 ); // You have 1 second to comply.
-#endif
 }
 
 /*!
--
cgit v0.9.0.2