Skip to content

Commit

Permalink
Fixed java-decompiler#20, Indexing failed when files are opened with …
Browse files Browse the repository at this point in the history
…"Open" context menu under Mac OS X
  • Loading branch information
emmanue1 committed May 13, 2015
1 parent 5f8b151 commit c314364
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/groovy/jd/gui/controller/MainController.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,10 @@ class MainController implements API {
mainView.addMainPanel(title, icon, tip, component)

if (component instanceof ContentIndexable) {
if (executor == null) {
executor = Executors.newSingleThreadExecutor()
}

def futureIndexes = executor.submit(new Callable<Indexes>() {
Indexes call() throws Exception {
return component.index(MainController.this)
Expand Down

0 comments on commit c314364

Please sign in to comment.