]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/filedlg.mm
fixing searchctrl on osx_cocoa, changing type for peer to wxSearchCtrl
[wxWidgets.git] / src / osx / cocoa / filedlg.mm
index 4d5aaad01fcae3e5b3352ea9241c3b9f5f224ed7..3e5de2867b0597aa3fd9084a293e1a3f19f6bb30 100644 (file)
@@ -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 )