From fe03d3bd604ac657fa752ed6428ed8b729189aa4 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Tue, 17 Sep 2013 10:14:20 +0300 Subject: [PATCH] Updates call history view on call ended. Patch provided by Timothy Price. --- .../impl/gui/main/call/CallManager.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/net/java/sip/communicator/impl/gui/main/call/CallManager.java b/src/net/java/sip/communicator/impl/gui/main/call/CallManager.java index fe7f82c92..7cb262779 100644 --- a/src/net/java/sip/communicator/impl/gui/main/call/CallManager.java +++ b/src/net/java/sip/communicator/impl/gui/main/call/CallManager.java @@ -174,18 +174,6 @@ else if (CallState.CALL_ENDED.equals(newValue)) } call.removeCallChangeListener(this); - - // If we're currently in the call history view, refresh - // it. - TreeContactList contactList - = GuiActivator.getContactList(); - - if (contactList.getCurrentFilter().equals( - TreeContactList.historyFilter)) - { - contactList.applyFilter( - TreeContactList.historyFilter); - } } } }); @@ -217,6 +205,18 @@ public void callEndedInEventDispatchThread(CallEvent ev) * they need to update their UI, for example). */ forwardCallEventToCallPanels(ev); + + // If we're currently in the call history view, refresh + // it. + TreeContactList contactList + = GuiActivator.getContactList(); + + if (contactList.getCurrentFilter().equals( + TreeContactList.historyFilter)) + { + contactList.applyFilter( + TreeContactList.historyFilter); + } } /**