diff options
| author | bernard.xiong <[email protected]> | 2010-02-24 16:06:12 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-02-24 16:06:12 +0000 |
| commit | fdc074beb25cff52d128430677df8233c8347299 (patch) | |
| tree | ddff8bc2e25de990ad1a29ffeb838bffac5cce90 /rtgui/widgets/window.c | |
| parent | 35e90a50040831d3ad918ad61614a78f668a1d97 (diff) | |
fix the modal widget initialization issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@444 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'rtgui/widgets/window.c')
| -rw-r--r-- | rtgui/widgets/window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rtgui/widgets/window.c b/rtgui/widgets/window.c index 03465f207e..8cba39d0c2 100644 --- a/rtgui/widgets/window.c +++ b/rtgui/widgets/window.c @@ -27,6 +27,8 @@ static void _rtgui_win_constructor(rtgui_win_t *win) win->on_deactivate = RT_NULL; win->on_close = RT_NULL; win->title = RT_NULL; + win->modal_code = RTGUI_MODAL_OK; + win->modal_widget = RT_NULL; /* set window hide */ RTGUI_WIDGET_HIDE(RTGUI_WIDGET(win)); |
