X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f30930a092c85f3255f8a0d79873cde438b0445..f9b4d680d72930c31fe14dd63421a85d97ccd739:/src/osx/cocoa/filedlg.mm diff --git a/src/osx/cocoa/filedlg.mm b/src/osx/cocoa/filedlg.mm index 4d5aaad01f..3e5de2867b 100644 --- a/src/osx/cocoa/filedlg.mm +++ b/src/osx/cocoa/filedlg.mm @@ -275,6 +275,7 @@ int wxFileDialog::ShowModal() returnCode = [sPanel runModalForDirectory:dir.AsNSString() file:file.AsNSString() ]; ModalFinishedCallback(sPanel, returnCode); + UnsubclassWin(); [sPanel setAccessoryView:nil]; } else @@ -295,6 +296,7 @@ int wxFileDialog::ShowModal() ModalFinishedCallback(oPanel, returnCode); + UnsubclassWin(); [oPanel setAccessoryView:nil]; if ( types != nil )