mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Use WebView’s stopLoading instead of killing the running task
This is a more appropriate API to use for signalling that we wish to abort the running command.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#import "HTMLOutputWindow.h"
|
||||
#import <OakAppKit/OakAppKit.h>
|
||||
#import <OakFoundation/NSString Additions.h>
|
||||
#import <OakSystem/process.h>
|
||||
#import <command/runner.h>
|
||||
#import <oak/debug.h>
|
||||
|
||||
@@ -108,7 +107,7 @@ OAK_DEBUG_VAR(HTMLOutputWindow);
|
||||
if(returnCode == NSAlertDefaultReturn) /* "Stop" */
|
||||
{
|
||||
[self.window orderOut:self];
|
||||
oak::kill_process_group_in_background(_commandRunner->process_id());
|
||||
[self.htmlOutputView stopLoading];
|
||||
[self.window close];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user