From: <Mi...@us...> - 2007-08-27 16:28:18
|
Revision: 1483 http://azsmrc.svn.sourceforge.net/azsmrc/?rev=1483&view=rev Author: Mirag3 Date: 2007-08-25 17:21:04 -0700 (Sat, 25 Aug 2007) Log Message: ----------- Added OS X compatible shutdown line. Without it the process never dies unless it is killed manually. Modified Paths: -------------- trunk/azsmrc/lbms/azsmrc/remote/client/swtgui/RCMain.java Modified: trunk/azsmrc/lbms/azsmrc/remote/client/swtgui/RCMain.java =================================================================== --- trunk/azsmrc/lbms/azsmrc/remote/client/swtgui/RCMain.java 2007-08-26 00:19:58 UTC (rev 1482) +++ trunk/azsmrc/lbms/azsmrc/remote/client/swtgui/RCMain.java 2007-08-26 00:21:04 UTC (rev 1483) @@ -267,6 +267,12 @@ } shutdown(); display.dispose(); + /* + * Have yet to trace the reason why, but OSX will not + * kill the whole application on SWT disposal- call exit to force end. + */ + if(Utilities.isOSX) + System.exit(0); } protected void createContents() { @@ -1345,11 +1351,11 @@ for(FlavorListener listen:listeners){ clipboard.removeFlavorListener(listen); }*/ - clipboard.addFlavorListener(new FlavorListener(){ Pattern magnetPattern = Pattern.compile("^magnet:\\?xt=urn:btih:[A-Za-z2-7]{32}$",Pattern.CASE_INSENSITIVE); public void flavorsChanged(FlavorEvent event) { + System.out.println("2"); if(connect && properties.getPropertyAsBoolean("auto_clipboard",Utilities.isLinux()? false : true)){ try { Transferable contents = clipboard.getContents(this); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |