This commit is contained in:
fgerlits 2005-04-29 14:17:16 +00:00
parent 6fd2087a7c
commit b960071ff0

View file

@ -22,7 +22,7 @@
Author : $Author: fgerlits $ Author : $Author: fgerlits $
Version : $Revision: 1.33 $ Version : $Revision: 1.34 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/GLiveSupport.cxx,v $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/GLiveSupport.cxx,v $
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -527,6 +527,15 @@ LiveSupport :: GLiveSupport ::
GLiveSupport :: addToScratchPad(Ptr<Playable>::Ref playable) GLiveSupport :: addToScratchPad(Ptr<Playable>::Ref playable)
throw () throw ()
{ {
PlayableList::iterator it;
for (it = scratchpadContents->begin(); it != scratchpadContents->end();
++it) {
Ptr<Playable>::Ref listElement = *it;
if (*listElement->getId() == *playable->getId()) {
scratchpadContents->erase(it);
break;
}
}
scratchpadContents->push_front(playable); scratchpadContents->push_front(playable);
masterPanel->updateScratchpadWindow(); masterPanel->updateScratchpadWindow();
} }