mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
fix view and workbench destroy issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@943 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -135,9 +135,6 @@ void rtgui_workbench_destroy(rtgui_workbench_t* workbench)
|
||||
{
|
||||
RT_ASSERT(workbench != RT_NULL);
|
||||
|
||||
/* hide workbench firstly */
|
||||
rtgui_workbench_hide(workbench);
|
||||
|
||||
if (RTGUI_TOPLEVEL(workbench)->server != RT_NULL)
|
||||
{
|
||||
struct rtgui_event_panel_detach edetach;
|
||||
@@ -398,6 +395,9 @@ rt_bool_t rtgui_workbench_event_handler(rtgui_widget_t* widget, rtgui_event_t* e
|
||||
{
|
||||
rtgui_view_t* view;
|
||||
|
||||
/* un-hide workbench */
|
||||
RTGUI_WIDGET_UNHIDE(widget);
|
||||
|
||||
/* paint a view */
|
||||
view = workbench->current_view;
|
||||
if (view != RT_NULL)
|
||||
|
||||
Reference in New Issue
Block a user