Fixed: Improper initialization of ActiveX component when Flash not available causing FFDec not start

This commit is contained in:
Jindra Petřík
2021-02-08 20:15:19 +01:00
parent a6c41ec269
commit 04683f0cb8
3 changed files with 33 additions and 29 deletions
@@ -53,10 +53,13 @@ public final class MainFrameRibbon extends AppRibbonFrame {
FlashPlayerPanel flashPanel = null;
FlashPlayerPanel flashPanel2 = null;
try {
flashPanel = new FlashPlayerPanel(this);
flashPanel2 = new FlashPlayerPanel(this);
} catch (FlashUnsupportedException fue) {
if (Configuration.useAdobeFlashPlayerForPreviews.get()) {
try {
flashPanel = new FlashPlayerPanel(this);
flashPanel2 = new FlashPlayerPanel(this);
} catch (FlashUnsupportedException fue) {
//ignored
}
}
Container cnt = getContentPane();