From d4118257e168ebe822c6fe84461f8a49607d1cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Thu, 14 Aug 2025 09:41:36 +0200 Subject: [PATCH] Do not allow to global search in editation mode --- CHANGELOG.md | 2 +- src/com/jpexs/decompiler/flash/gui/MainPanel.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c94e7dcb0..310ed5e23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,7 +66,7 @@ All notable changes to this project will be documented in this file. - [#2507] FLA export - Place characters over multiple button frames - [#2508] AS1/2 direct editation - first command in for loop header not compiled - [#2510] AS direct editation - popped value -- [#2511] Allowing to jump from search window while editation causing problems +- [#2511] Allowing to search or to jump from search window while in editation mode ### Changed - Icon of "Deobfuscation options" menu from pile of pills to medkit diff --git a/src/com/jpexs/decompiler/flash/gui/MainPanel.java b/src/com/jpexs/decompiler/flash/gui/MainPanel.java index 611665ee2..fd188126f 100644 --- a/src/com/jpexs/decompiler/flash/gui/MainPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/MainPanel.java @@ -2939,6 +2939,11 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se public void searchInActionScriptOrText(Boolean searchInText, Openable openable, boolean useSelection) { View.checkAccess(); + + if (checkEdited()) + { + return; + } /*if (!(openable instanceof SWF)) { //FIXME for ABCs return;