fixed bug #891
This commit is contained in:
parent
6fd2087a7c
commit
b960071ff0
1 changed files with 10 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue