1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-18 16:41:14 +02:00

Work around the other link problem, but I don't know what consequences...

... this will have at run-time for the file dialog.
This commit is contained in:
Paul Licameli
2018-11-15 14:46:43 -05:00
parent 7c78a91778
commit 296f846158

View File

@@ -159,8 +159,8 @@ void FileDialog::Create(
{ {
FileDialogBase::Create(parent, message, defaultDir, defaultFileName, wildCard, style, pos, sz, name); FileDialogBase::Create(parent, message, defaultDir, defaultFileName, wildCard, style, pos, sz, name);
m_sheetDelegate = [[ModalDialogDelegate alloc] init]; // m_sheetDelegate = [[ModalDialogDelegate alloc] init];
[(ModalDialogDelegate*)m_sheetDelegate setImplementation: this]; // [(ModalDialogDelegate*)m_sheetDelegate setImplementation: this];
} }
FileDialog::~FileDialog() FileDialog::~FileDialog()
@@ -316,7 +316,7 @@ void FileDialog::ShowWindowModal()
NSWindow* nativeParent = parentWindow->GetWXWindow(); NSWindow* nativeParent = parentWindow->GetWXWindow();
[sPanel beginSheetForDirectory:dir.AsNSString() file:file.AsNSString() [sPanel beginSheetForDirectory:dir.AsNSString() file:file.AsNSString()
modalForWindow: nativeParent modalDelegate: m_sheetDelegate modalForWindow: nativeParent modalDelegate: nil // m_sheetDelegate
didEndSelector: @selector(sheetDidEnd:returnCode:contextInfo:) didEndSelector: @selector(sheetDidEnd:returnCode:contextInfo:)
contextInfo: nil]; contextInfo: nil];
} }
@@ -336,7 +336,7 @@ void FileDialog::ShowWindowModal()
NSWindow* nativeParent = parentWindow->GetWXWindow(); NSWindow* nativeParent = parentWindow->GetWXWindow();
[oPanel beginSheetForDirectory:dir.AsNSString() file:file.AsNSString() [oPanel beginSheetForDirectory:dir.AsNSString() file:file.AsNSString()
types: types modalForWindow: nativeParent types: types modalForWindow: nativeParent
modalDelegate: m_sheetDelegate modalDelegate: nil // m_sheetDelegate
didEndSelector: @selector(sheetDidEnd:returnCode:contextInfo:) didEndSelector: @selector(sheetDidEnd:returnCode:contextInfo:)
contextInfo: nil]; contextInfo: nil];
} }