telutils/dialpad/src/dialpadbutton.cpp
changeset 27 7eb70891911c
parent 19 e44a8c097b15
child 32 1f002146abb4
--- a/telutils/dialpad/src/dialpadbutton.cpp	Thu May 27 13:23:05 2010 +0300
+++ b/telutils/dialpad/src/dialpadbutton.cpp	Fri Jun 11 14:07:16 2010 +0300
@@ -54,7 +54,7 @@
     bool result = HbPushButton::sceneEvent(event);
 
     if (event->type() == QEvent::UngrabMouse) {
-        if (isDown()) {
+        if (isVisible() && isDown()) {
             // this is needed in situation, where
             // longpress launches a dialog (vmbx)
             // and button release event goes to