mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-13 03:55:22 +02:00
Use default display rather than the shell for the listener - since listener.getShell() can't work off the main thread.
fix for defect 150919
This commit is contained in:
parent
f556980f52
commit
fd2e5014bb
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ public class SystemPostableEventNotifier implements Runnable
|
||||||
{
|
{
|
||||||
this.event = event;
|
this.event = event;
|
||||||
this.listener = listener;
|
this.listener = listener;
|
||||||
Display d = listener.getShell().getDisplay();
|
// fix for 150919
|
||||||
|
Display d = Display.getDefault();
|
||||||
|
//Display d = listener.getShell().getDisplay();
|
||||||
//d.asyncExec(this);
|
//d.asyncExec(this);
|
||||||
d.syncExec(this);
|
d.syncExec(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue