mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-21 15:23:59 +02:00
LaunchBar: prevent widget is disposed exception on shutdown
Change-Id: I79afcded38a64a9c2f2ce0190eee1766a9d4265e
This commit is contained in:
parent
faf222b8f2
commit
3487f9e9e2
1 changed files with 2 additions and 0 deletions
|
@ -268,6 +268,8 @@ public abstract class CSelector extends Composite {
|
|||
}
|
||||
|
||||
public void setSelection(Object element) {
|
||||
if (isDisposed())
|
||||
return;
|
||||
this.selection = element;
|
||||
if (buttonComposite != null)
|
||||
buttonComposite.dispose();
|
||||
|
|
Loading…
Add table
Reference in a new issue