| Index: views/window/dialog_client_view.cc
|
| ===================================================================
|
| --- views/window/dialog_client_view.cc (revision 17574)
|
| +++ views/window/dialog_client_view.cc (working copy)
|
| @@ -369,6 +369,11 @@
|
| // DialogClientView, ButtonListener implementation:
|
|
|
| void DialogClientView::ButtonPressed(Button* sender) {
|
| + // We NULL check the delegate here since the buttons can receive WM_COMMAND
|
| + // messages even after they (and the window containing us) are destroyed.
|
| + if (!GetDialogDelegate())
|
| + return;
|
| +
|
| if (sender == ok_button_) {
|
| AcceptWindow();
|
| } else if (sender == cancel_button_) {
|
|
|