Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 2008103002: If the window handle is destroyed because of an owner being destroyed, ensure any disabled windows … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/widget_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index 74d5cd6eb4b11aa828011ba94d431b11b4f8dd79..7555abd0f26e0b5a719d150f6b794a834481563d 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -897,8 +897,10 @@ LRESULT HWNDMessageHandler::OnWndProc(UINT message,
if (delegate_) {
delegate_->PostHandleMSG(message, w_param, l_param);
- if (message == WM_NCDESTROY)
+ if (message == WM_NCDESTROY) {
+ RestoreEnabledIfNecessary();
delegate_->HandleDestroyed();
+ }
}
if (message == WM_ACTIVATE && IsTopLevelWindow(window))
« no previous file with comments | « ui/views/widget/widget_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698