mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 23:55:26 +02:00
fix for Bug 161841
This commit is contained in:
parent
7cc1112d10
commit
962e32e92c
1 changed files with 6 additions and 1 deletions
|
@ -309,13 +309,17 @@ FocusListener
|
|||
|
||||
public boolean isPollingEnabled()
|
||||
{
|
||||
if (_isPolling)
|
||||
if (_isPolling && !getViewer().getControl().isDisposed())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setPollingEnabled(boolean flag)
|
||||
{
|
||||
_isPolling = flag;
|
||||
}
|
||||
|
||||
public void setEnabled(boolean flag)
|
||||
{
|
||||
|
@ -474,6 +478,7 @@ FocusListener
|
|||
{
|
||||
_viewer.dispose();
|
||||
_tabFolderPage.dispose();
|
||||
_isPolling = false;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue