Skip to content

Commit

Permalink
Patch contributed by Tim Slechten that fixes a problem with selecting…
Browse files Browse the repository at this point in the history
… the profiler library
  • Loading branch information
jasonsantos committed Jul 20, 2009
1 parent 43030a7 commit 41defb2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -200,7 +200,7 @@ protected void addProfiler() {
name.open(); name.open();
FileDialog file = new FileDialog(getShell(), SWT.OPEN); FileDialog file = new FileDialog(getShell(), SWT.OPEN);


if(Platform.getOS() == Platform.OS_WIN32) if(Platform.getOS().equals(Platform.OS_WIN32))
file.setFilterExtensions(new String[] { "*.dll", "*.a", "*.lib" }); file.setFilterExtensions(new String[] { "*.dll", "*.a", "*.lib" });
else else
file.setFilterExtensions(new String[] { "*.so", "*.a"}); file.setFilterExtensions(new String[] { "*.so", "*.a"});
Expand Down Expand Up @@ -242,6 +242,6 @@ public boolean performOk() {
.getSelection()).getFirstElement(); .getSelection()).getFirstElement();
LuaProfiler.getDefault().setSelectedProfiler(selected); LuaProfiler.getDefault().setSelectedProfiler(selected);


return super.performOk(); return true;
} }
} }

0 comments on commit 41defb2

Please sign in to comment.