updated time display, as it no longer needs a valid session id

This commit is contained in:
maroy 2004-12-20 14:27:16 +00:00
parent d554a793d1
commit c687ab5a52
2 changed files with 24 additions and 34 deletions

View File

@ -22,7 +22,7 @@
Author : $Author: maroy $
Version : $Revision: 1.2 $
Version : $Revision: 1.3 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/MasterPanelWindow.cxx,v $
------------------------------------------------------------------------------*/
@ -163,11 +163,8 @@ MasterPanelWindow :: resetTimer(void) throw ()
bool
MasterPanelWindow :: onUpdateTime(int dummy) throw ()
{
Ptr<SessionId>::Ref sessionId = gLiveSupport->getSessionId();
if (sessionId.get()) {
Ptr<const ptime>::Ref now = gLiveSupport->getScheduler()
->getSchedulerTime(sessionId);
->getSchedulerTime();
if (now.get()) {
time_duration dayTime = now->time_of_day();
@ -179,9 +176,6 @@ MasterPanelWindow :: onUpdateTime(int dummy) throw ()
timeWidget->set_text(to_simple_string(dayTimeSec));
}
} else {
timeWidget->set_text("time");
}
return true;
}

View File

@ -22,7 +22,7 @@
Author : $Author: maroy $
Version : $Revision: 1.9 $
Version : $Revision: 1.10 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/Attic/UiTestMainWindow.cxx,v $
------------------------------------------------------------------------------*/
@ -227,11 +227,8 @@ UiTestMainWindow :: onLoginButtonClicked (void) throw ()
bool
UiTestMainWindow :: onUpdateTime(int dummy) throw ()
{
Ptr<SessionId>::Ref sessionId = gLiveSupport->getSessionId();
if (sessionId.get()) {
Ptr<const ptime>::Ref now = gLiveSupport->getScheduler()
->getSchedulerTime(sessionId);
->getSchedulerTime();
if (now.get()) {
time_duration dayTime = now->time_of_day();
@ -243,7 +240,6 @@ UiTestMainWindow :: onUpdateTime(int dummy) throw ()
timeLabel->set_text(to_simple_string(dayTimeSec));
}
}
return true;
}