fixed bug with hotlist move
This commit is contained in:
parent
f24456e0a2
commit
e7b3801a72
|
@ -10,7 +10,7 @@
|
||||||
//
|
//
|
||||||
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||||
// for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
// for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||||
// Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
// Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// Contributor(s):
|
// Contributor(s):
|
||||||
|
|
||||||
|
@ -45,23 +45,23 @@ try
|
||||||
entry1 = vlib.castConferenceHotlistEntry(hotlist.get(ndx));
|
entry1 = vlib.castConferenceHotlistEntry(hotlist.get(ndx));
|
||||||
entry2 = vlib.castConferenceHotlistEntry(hotlist.get(ndx2));
|
entry2 = vlib.castConferenceHotlistEntry(hotlist.get(ndx2));
|
||||||
|
|
||||||
// get the sequence numbers
|
// get the conferences
|
||||||
seq1 = entry1.getSequence();
|
conf1 = entry1.getConference();
|
||||||
seq2 = entry2.getSequence();
|
conf2 = entry2.getConference();
|
||||||
|
|
||||||
// now reassign the sequences
|
// now reassign the sequences
|
||||||
entry1.setHotlistSequence(seq2);
|
conf1.setHotlistSequence(entry2.getSequence());
|
||||||
restore = true;
|
restore = true;
|
||||||
try
|
try
|
||||||
{ // set the second sequence
|
{ // set the second sequence
|
||||||
entry2.setHotlistSequence(seq1);
|
conf2.setHotlistSequence(entry1.getSequence());
|
||||||
restore = false;
|
restore = false;
|
||||||
|
|
||||||
} // end try
|
} // end try
|
||||||
finally
|
finally
|
||||||
{ // restore the first sequence on error
|
{ // restore the first sequence on error
|
||||||
if (restore)
|
if (restore)
|
||||||
entry1.setHotlistSequence(seq1);
|
conf1.setHotlistSequence(entry1.getSequence());
|
||||||
|
|
||||||
} // end finally
|
} // end finally
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
*
|
*
|
||||||
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||||
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||||
* Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
* Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Contributor(s):
|
* Contributor(s):
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
*
|
*
|
||||||
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||||
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||||
* Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
* Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Contributor(s):
|
* Contributor(s):
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user