fixed bug with hotlist move

This commit is contained in:
Eric J. Bowersox 2002-01-16 21:36:23 +00:00
parent f24456e0a2
commit e7b3801a72
3 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@
//
// 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
// 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):
@ -45,23 +45,23 @@ try
entry1 = vlib.castConferenceHotlistEntry(hotlist.get(ndx));
entry2 = vlib.castConferenceHotlistEntry(hotlist.get(ndx2));
// get the sequence numbers
seq1 = entry1.getSequence();
seq2 = entry2.getSequence();
// get the conferences
conf1 = entry1.getConference();
conf2 = entry2.getConference();
// now reassign the sequences
entry1.setHotlistSequence(seq2);
conf1.setHotlistSequence(entry2.getSequence());
restore = true;
try
{ // set the second sequence
entry2.setHotlistSequence(seq1);
conf2.setHotlistSequence(entry1.getSequence());
restore = false;
} // end try
finally
{ // restore the first sequence on error
if (restore)
entry1.setHotlistSequence(seq1);
conf1.setHotlistSequence(entry1.getSequence());
} // end finally

View File

@ -11,7 +11,7 @@
*
* 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
* 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):
*/

View File

@ -11,7 +11,7 @@
*
* 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
* 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):
*/