From c5448c3adaba48f606e21f5adacb01771fa80396 Mon Sep 17 00:00:00 2001 From: emmanue1 Date: Wed, 13 May 2015 20:10:19 +0200 Subject: [PATCH] Blocks the opening the same file twice --- .../groovy/jd/gui/view/component/panel/MainTabbedPanel.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/groovy/jd/gui/view/component/panel/MainTabbedPanel.groovy b/app/src/main/groovy/jd/gui/view/component/panel/MainTabbedPanel.groovy index 74cf60ad..4d6dbe7f 100644 --- a/app/src/main/groovy/jd/gui/view/component/panel/MainTabbedPanel.groovy +++ b/app/src/main/groovy/jd/gui/view/component/panel/MainTabbedPanel.groovy @@ -139,7 +139,7 @@ class MainTabbedPanel extends TabbedPanel implements UriOpenable, PageChangeList // Search & display main tab def page = showPage(uri) if (page) { - if (page instanceof UriOpenable) { + if (!uri.equals(page.uri) && (page instanceof UriOpenable)) { // Enable page changed event pageChangedListenersEnabled = true // Search & display sub tab