quickpanel: don't add animator if calculated duration is zero. 88/98588/2
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 18 Nov 2016 01:12:20 +0000 (10:12 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 22 Nov 2016 10:48:36 +0000 (02:48 -0800)
Change-Id: Iad5246f964ac5fbb29e0963856196b1033de72e0

src/bin/services/e_service_quickpanel.c

index 6e642a1..3224584 100644 (file)
@@ -485,6 +485,12 @@ _e_qp_srv_effect_finish_job_start(E_Policy_Quickpanel *qp, Eina_Bool visible)
          break;
      }
 
+   if (duration == 0.0)
+     {
+        _e_qp_srv_effect_finish_job_end(qp);
+        return;
+     }
+
    /* start move effect */
    qp->effect.from = from;
    qp->effect.to = to;