changed logic location of checking pre_uuid 54/17554/1
authorWonkeun Oh <wonkeun.oh@samsung.com>
Thu, 12 Sep 2013 07:57:44 +0000 (16:57 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 7 Mar 2014 02:27:40 +0000 (11:27 +0900)
Change-Id: I968716267e0d9968fd8f111b1e2b58c8561b11fa

ism/extras/efl_panel/isf_panel_efl.cpp

index 6c191eb..cf4d040 100644 (file)
@@ -674,11 +674,11 @@ static bool set_helper_ise (const String &uuid, const String &module_name)
     SCIM_DEBUG_MAIN (3) << __FUNCTION__ << "...\n";
 
     TOOLBAR_MODE_T mode = _panel_agent->get_current_toolbar_mode ();
+    String pre_uuid = _panel_agent->get_current_helper_uuid ();
+    if (pre_uuid == uuid)
+        return false;
 
     if (TOOLBAR_HELPER_MODE == mode) {
-        String pre_uuid = _panel_agent->get_current_helper_uuid ();
-        if (pre_uuid == uuid)
-            return false;
         _panel_agent->hide_helper (pre_uuid);
         _panel_agent->stop_helper (pre_uuid);
         char buf[256] = {0};