Skip to content

Commit

Permalink
Blocks the opening the same file twice
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed May 13, 2015
1 parent c314364 commit c5448c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5448c3

Please sign in to comment.