Fixed a bug that sometimes prevented GBS files from being opened
This commit is contained in:
parent
de500cd397
commit
50bf8c4919
@ -902,7 +902,7 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency)
|
|||||||
{
|
{
|
||||||
GB_set_rendering_disabled(&gb, true);
|
GB_set_rendering_disabled(&gb, true);
|
||||||
_view = nil;
|
_view = nil;
|
||||||
for (NSView *view in _mainWindow.contentView.subviews) {
|
for (NSView *view in [_mainWindow.contentView.subviews copy]) {
|
||||||
[view removeFromSuperview];
|
[view removeFromSuperview];
|
||||||
}
|
}
|
||||||
[[NSBundle mainBundle] loadNibNamed:@"GBS" owner:self topLevelObjects:nil];
|
[[NSBundle mainBundle] loadNibNamed:@"GBS" owner:self topLevelObjects:nil];
|
||||||
|
Loading…
Reference in New Issue
Block a user