Skip to content

Commit 921da36

Browse files
committed
fix error when moving traces between splits
1 parent e72ed52 commit 921da36

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/digma/intellij/plugin/documentation/DocumentationFileEditor.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.intellij.openapi.fileEditor.*;
44
import com.intellij.openapi.project.Project;
5-
import com.intellij.openapi.util.UserDataHolderBase;
5+
import com.intellij.openapi.util.*;
66
import com.intellij.openapi.vfs.VirtualFile;
77
import com.intellij.ui.jcef.JBCefApp;
88
import org.digma.intellij.plugin.ui.jcef.*;
@@ -101,11 +101,10 @@ public void removePropertyChangeListener(@NotNull PropertyChangeListener listene
101101
@Override
102102
public void dispose() {
103103
if (jCefComponent != null) {
104-
jCefComponent.dispose();
104+
Disposer.dispose(jCefComponent);
105105
jCefComponent = null;
106106
}
107107
disposed = true;
108-
file.setValid(false);
109108
}
110109

111110
}

0 commit comments

Comments
 (0)