Skip to content
This repository was archived by the owner on Jun 23, 2019. It is now read-only.

Commit 858e958

Browse files
committed
2.4.3 - Only allocate the correction dialog once
1 parent f7301d1 commit 858e958

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ExceptionsPref.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ - (IBAction)addTitle:(id)sender{
7070
// Exists, don't do anything
7171
return;
7272
}
73-
fsdialog = [FixSearchDialog new];
73+
if (!fsdialog) {
74+
fsdialog = [FixSearchDialog new];
75+
}
7476
[fsdialog setCorrection:false];
7577
fsdialog.searchquery = detectedtitle;
7678
[self.view.window beginSheet:fsdialog.window completionHandler:^(NSModalResponse returnCode) {

0 commit comments

Comments
 (0)