changeset 57:0334bd34386c

mmiIdle.c: fix for the bogus editor state
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 21 Oct 2020 02:22:44 +0000
parents eabd1ac0fdb7
children c93e02568273
files src/ui/bmi/mmiIdle.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui/bmi/mmiIdle.c	Tue Oct 20 22:14:36 2020 +0000
+++ b/src/ui/bmi/mmiIdle.c	Wed Oct 21 02:22:44 2020 +0000
@@ -522,9 +522,11 @@
 static int  homezoneFlag = 0; //Jun 14, 2005 REF: MMI-FIX-30439 x0018858
                               // Added a flag.
 
+#if 0	/* removed in FreeCalypso */
 //Jun 24, 2005 MMI-FIX-30973 x0018858
 //Global to copy the New CB msg tag.
 char tag_zone[94];
+#endif
 
 //x0pleela 09 Feb, 2006 ER: OMAPS00065203
 #define SPN         0   /* SPN to be displayed on Idle screen*/
@@ -3133,6 +3135,8 @@
                 default:
                 break;
         }
+
+#if 0	/* removed in FreeCalypso */
 //Jun 24, 2005 MMI-FIX-30973 x0018858
 //Added code to handle the display of homezone/cityzone tag.
 //Begin 30973
@@ -3150,6 +3154,7 @@
             }
         }
 //End 30973 
+#endif
 
         return MFW_EVENT_CONSUMED;
 }
@@ -3335,6 +3340,7 @@
                 memset(idle_data.incoming_cb_msg, '\0',MAX_CBMSG_LEN);
                 strncpy((char *)idle_data.incoming_cb_msg,  (char *)cbch_string, MAX_CBMSG_LEN);
 
+#if 0	/* removed in FreeCalypso */
 //Jun 24, 2005 MMI-FIX-30973 x0018858
 // Copy the tag string on to a global variable for display later.
 //Begin 30973
@@ -3342,6 +3348,8 @@
                 strncpy((char *)tag_zone,  (char *)idle_data.incoming_cb_msg, MAX_CBMSG_LEN);
                 tag_zone[MAX_CBMSG_LEN -1]= '\0';
 //End 30973
+#endif
+
             /* SPR#1428 - SH - New Editor changes */
 #ifdef NEW_EDITOR
                 if (!idle_data.editor)
@@ -4191,8 +4199,10 @@
       /* SPR#1428 - SH - New Editor changes */
 #ifdef NEW_EDITOR
       ATB_edit_Destroy(data->editor);
+      data->editor = 0;
 #else/* NEW_EDITOR */
       edt_delete(data->edt);
+      data->edt = 0;
 #endif /* NEW_EDITOR */
       kbd_delete(data->kbd);
       kbd_delete(data->kbd_long);