Commit 3bad3ed
committed
Prevent shutdown hang when changing theme and disabling theming
When changing the current theme via the Appearance preference page, and
disabling theming, two calls to IWorkbench.restart() are triggered
during ViewsPreferencePage.performOk(). This results in a hang at
shutdown, during the second restart call.
This change ensures only one restart is triggered, preventing the hang.
Fixes: #2950
Signed-off-by: Simeon Andreev <[email protected]>1 parent ef61869 commit 3bad3ed
File tree
1 file changed
+17
-4
lines changed- bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/dialogs
1 file changed
+17
-4
lines changedLines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
384 | 388 | | |
385 | 389 | | |
386 | 390 | | |
| |||
400 | 404 | | |
401 | 405 | | |
402 | 406 | | |
403 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
404 | 410 | | |
405 | 411 | | |
406 | 412 | | |
407 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
408 | 416 | | |
409 | 417 | | |
410 | | - | |
411 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
412 | 425 | | |
413 | 426 | | |
414 | 427 | | |
| |||
0 commit comments