Changeset 81db2a4


Ignore:
Timestamp:
11/13/13 10:13:38 (15 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1
Children:
0cb1016
Parents:
88745de
Message:

Put a 2 second delay of showing the PCDM splash screen after a DE closes. This should give some time for devices to settle so we can catch when the system is going into shutdown a bit more reliably.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/main.cpp

    r999faef r81db2a4  
    146146  //} 
    147147  splash.show(); //show the splash screen again 
    148   QCoreApplication::processEvents(); 
     148  //Now wait a couple seconds for things to settle 
     149  QTime wTime = QTime::currentTime().addSecs(2); 
     150  while( QTime::currentTime() < wTime ){ 
     151    QCoreApplication::processEvents(QEventLoop::AllEvents,100); 
     152  } 
    149153  //check for shutdown process 
    150154  if(QFile::exists("/var/run/nologin")){ 
     
    152156    QCoreApplication::processEvents(); 
    153157    //Pause for a few seconds to prevent starting a new session during a shutdown 
    154     QTime wTime = QTime::currentTime().addSecs(30); 
     158    wTime = QTime::currentTime().addSecs(30); 
    155159    while( QTime::currentTime() < wTime ){  
    156160      //Keep processing events during the wait (for splashscreen) 
Note: See TracChangeset for help on using the changeset viewer.