Disabling sheets codepath until we can resolve the nested loop issue.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -79,6 +79,7 @@ int wxDirDialog::ShowModal()
|
|||||||
fprintf(stderr, "No parent!\n");
|
fprintf(stderr, "No parent!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (parentWindow)
|
if (parentWindow)
|
||||||
{
|
{
|
||||||
NSWindow* nativeParent = parentWindow->GetWXWindow();
|
NSWindow* nativeParent = parentWindow->GetWXWindow();
|
||||||
@@ -92,6 +93,7 @@ int wxDirDialog::ShowModal()
|
|||||||
[sheetDelegate release];
|
[sheetDelegate release];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
returnCode = (NSInteger)[oPanel runModalForDirectory:dir.AsNSString() file:nil types:nil];
|
returnCode = (NSInteger)[oPanel runModalForDirectory:dir.AsNSString() file:nil types:nil];
|
||||||
}
|
}
|
||||||
|
@@ -177,8 +177,8 @@ int wxFileDialog::ShowModal()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// avoid multiple event handlers on stack
|
/*
|
||||||
if ( 0 /*parentWindow*/)
|
if (parentWindow)
|
||||||
{
|
{
|
||||||
NSWindow* nativeParent = parentWindow->GetWXWindow();
|
NSWindow* nativeParent = parentWindow->GetWXWindow();
|
||||||
ModalDialogDelegate* sheetDelegate = [[ModalDialogDelegate alloc] init];
|
ModalDialogDelegate* sheetDelegate = [[ModalDialogDelegate alloc] init];
|
||||||
@@ -191,6 +191,7 @@ int wxFileDialog::ShowModal()
|
|||||||
[sheetDelegate release];
|
[sheetDelegate release];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
returnCode = [sPanel runModalForDirectory:dir.AsNSString() file:file.AsNSString() ];
|
returnCode = [sPanel runModalForDirectory:dir.AsNSString() file:file.AsNSString() ];
|
||||||
}
|
}
|
||||||
@@ -217,8 +218,8 @@ int wxFileDialog::ShowModal()
|
|||||||
[oPanel setCanChooseFiles:YES];
|
[oPanel setCanChooseFiles:YES];
|
||||||
[oPanel setMessage:cf.AsNSString()];
|
[oPanel setMessage:cf.AsNSString()];
|
||||||
|
|
||||||
// avoid multiple event handlers on stack
|
/*
|
||||||
if ( 0 /*parentWindow*/)
|
if (parentWindow)
|
||||||
{
|
{
|
||||||
NSWindow* nativeParent = parentWindow->GetWXWindow();
|
NSWindow* nativeParent = parentWindow->GetWXWindow();
|
||||||
ModalDialogDelegate* sheetDelegate = [[ModalDialogDelegate alloc] init];
|
ModalDialogDelegate* sheetDelegate = [[ModalDialogDelegate alloc] init];
|
||||||
@@ -232,6 +233,7 @@ int wxFileDialog::ShowModal()
|
|||||||
[sheetDelegate release];
|
[sheetDelegate release];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
returnCode = [oPanel runModalForDirectory:dir.AsNSString()
|
returnCode = [oPanel runModalForDirectory:dir.AsNSString()
|
||||||
file:file.AsNSString() types:types];
|
file:file.AsNSString() types:types];
|
||||||
|
@@ -192,6 +192,7 @@ int wxMessageDialog::ShowModal()
|
|||||||
parentWindow = dynamic_cast<wxNonOwnedWindow*>(wxGetTopLevelParent(GetParent()));
|
parentWindow = dynamic_cast<wxNonOwnedWindow*>(wxGetTopLevelParent(GetParent()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (parentWindow)
|
if (parentWindow)
|
||||||
{
|
{
|
||||||
NSWindow* nativeParent = parentWindow->GetWXWindow();
|
NSWindow* nativeParent = parentWindow->GetWXWindow();
|
||||||
@@ -204,6 +205,7 @@ int wxMessageDialog::ShowModal()
|
|||||||
[sheetDelegate release];
|
[sheetDelegate release];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
button = [alert runModal];
|
button = [alert runModal];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user