[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/icecream/icecream/mon
From: Cornelius Schumacher <schumacher () kde ! org>
Date: 2003-12-31 14:49:21
Message-ID: 20031231144921.96DEB93DE () office ! kde ! org
[Download RAW message or body]
CVS commit by cschumac:
Fix display of local jobs.
M +7 -3 ganttstatusview.cc 1.8
--- kdenonbeta/icecream/icecream/mon/ganttstatusview.cc #1.7:1.8
@@ -246,8 +246,12 @@ void GanttStatusView::update( const Job
GanttProgress *slot = 0;
- NodeMap::ConstIterator it2 = mNodeMap.find( job.server() );
+ QString processor;
+ if ( job.state() == Job::LocalOnly ) processor = job.client();
+ else processor = job.server();
+
+ NodeMap::ConstIterator it2 = mNodeMap.find( processor );
if ( it2 == mNodeMap.end() ) {
// kdDebug() << " Server not known" << endl;
- slot = registerNode( job.server() );
+ slot = registerNode( processor );
} else {
SlotList slotList = it2.data();
@@ -262,5 +266,5 @@ void GanttStatusView::update( const Job
if ( it3 == slotList.end() ) {
// kdDebug() << " Create new slot" << endl;
- slot = registerNode( job.server() );
+ slot = registerNode( processor );
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic