Bug 421841 - "Breakpad continually sends the same crash report over and over until you manually stop it" (add (void)closeMeDown; method, call it instead of closeClicked) [p=beltzner@mozilla.com (Mike Beltzner) r=ted/luser a=blocking1.9+]

This commit is contained in:
reed@reedloden.com 2008-03-10 11:59:59 -07:00
Родитель 71610e2cd7
Коммит 55d04204ff
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -86,6 +86,7 @@
- (void)showErrorUI:(const std::string&)dumpfile; - (void)showErrorUI:(const std::string&)dumpfile;
- (void)showReportInfo; - (void)showReportInfo;
- (void)maybeSubmitReport; - (void)maybeSubmitReport;
- (void)closeMeDown;
- (IBAction)submitReportClicked:(id)sender; - (IBAction)submitReportClicked:(id)sender;
- (IBAction)viewReportClicked:(id)sender; - (IBAction)viewReportClicked:(id)sender;

Просмотреть файл

@ -236,6 +236,11 @@ static bool RestartApplication()
} }
} }
-(void)closeMeDown
{
[NSApp terminate:self];
}
-(IBAction)submitReportClicked:(id)sender -(IBAction)submitReportClicked:(id)sender
{ {
[self updateSubmit]; [self updateSubmit];
@ -492,7 +497,7 @@ static bool RestartApplication()
string:Str(ST_SUBMITFAILED) string:Str(ST_SUBMITFAILED)
resizeWindow:YES]; resizeWindow:YES];
// quit after 5 seconds // quit after 5 seconds
[self performSelector:@selector(closeClicked:) withObject:self [self performSelector:@selector(closeMeDown:) withObject:nil
afterDelay:5.0]; afterDelay:5.0];
} }
@ -577,7 +582,7 @@ static bool RestartApplication()
resizeWindow:YES]; resizeWindow:YES];
} }
// quit after 5 seconds // quit after 5 seconds
[self performSelector:@selector(closeClicked:) withObject:self [self performSelector:@selector(closeMeDown:) withObject:nil
afterDelay:5.0]; afterDelay:5.0];
} }