Permalink
Browse files

Patch contributed by Tim Slechten that fixes a problem with selecting…

… the profiler library
  • Loading branch information...
1 parent 43030a7 commit 41defb203f5453ab1a13eeb92b56d90cafc4541b jasonsantos committed Jul 20, 2009
@@ -200,7 +200,7 @@ protected void addProfiler() {
name.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" });
else
file.setFilterExtensions(new String[] { "*.so", "*.a"});
@@ -242,6 +242,6 @@ public boolean performOk() {
.getSelection()).getFirstElement();
LuaProfiler.getDefault().setSelectedProfiler(selected);
- return super.performOk();
+ return true;
}
}

0 comments on commit 41defb2

Please sign in to comment.