summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFNet/macsrc/SockDialog.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/plugins/DFNet/macsrc/SockDialog.m')
-rwxr-xr-xmacosx/plugins/DFNet/macsrc/SockDialog.m9
1 files changed, 7 insertions, 2 deletions
diff --git a/macosx/plugins/DFNet/macsrc/SockDialog.m b/macosx/plugins/DFNet/macsrc/SockDialog.m
index 2795e17f..cbef65b5 100755
--- a/macosx/plugins/DFNet/macsrc/SockDialog.m
+++ b/macosx/plugins/DFNet/macsrc/SockDialog.m
@@ -22,8 +22,7 @@ void SysMessage(const char *fmt, ...)
NSAlert *alert = [NSAlert alertWithMessageText:@"Error" defaultButton:@"Stop" alternateButton:nil otherButton:nil informativeTextWithFormat:@"%@", errString];
[alert setAlertStyle:NSCriticalAlertStyle];
NSInteger result = [alert runModal];
- if (result == NSAlertDefaultReturn)
- {
+ if (result == NSAlertDefaultReturn) {
Class theEmuClass = NSClassFromString(@"EmuThread");
if (theEmuClass) {
[theEmuClass stop];
@@ -81,6 +80,7 @@ void sockDestroyWaitDlg()
}
@implementation SockDialog
+@synthesize spinningBar;
- (IBAction)cancel:(id)sender {
WaitCancel = 1;
@@ -91,4 +91,9 @@ void sockDestroyWaitDlg()
return self = [self initWithWindowNibName:@"SockDialog"];
}
+- (void)awakeFromNib
+{
+ [spinningBar startAnimation:nil];
+}
+
@end