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:
@@ -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];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user