mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
fix destroy an application issue when there is no another application in the panel.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1312 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -79,12 +79,14 @@ void rtgui_server_destroy_application(struct rtgui_event_panel_detach* event)
|
||||
{
|
||||
/* get next thread and active it */
|
||||
rt_thread_t tid = rtgui_panel_get_active_thread(panel);
|
||||
|
||||
/* let this thread repaint */
|
||||
struct rtgui_event_paint epaint;
|
||||
RTGUI_EVENT_PAINT_INIT(&epaint);
|
||||
epaint.wid = RT_NULL;
|
||||
rtgui_thread_send(tid, (struct rtgui_event*)&epaint, sizeof(epaint));
|
||||
if (tid != RT_NULL)
|
||||
{
|
||||
/* let this thread repaint */
|
||||
struct rtgui_event_paint epaint;
|
||||
RTGUI_EVENT_PAINT_INIT(&epaint);
|
||||
epaint.wid = RT_NULL;
|
||||
rtgui_thread_send(tid, (struct rtgui_event*)&epaint, sizeof(epaint));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user