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

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

Issue 1978163003: Restore enabled state if a "modal" window is destroyed by an owner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit removal in preparation to land change 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 14b30dae08a6784ad376598d40f2ee6d8e387da7..921b838fac2c1cadf199b2d236b172edccbda2b1 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -911,8 +911,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