Fix for text's popup. 80/57880/1
authorVictor Cebollada <v.cebollada@samsung.com>
Mon, 25 Jan 2016 14:41:05 +0000 (14:41 +0000)
committerVictor Cebollada <v.cebollada@samsung.com>
Mon, 25 Jan 2016 15:06:55 +0000 (15:06 +0000)
-Do not show the text's popup when none of the buttons are active.

Change-Id: I9e080c446ac185cdd86a46885389a834be73cc89
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp

index c19b920..61388ac 100644 (file)
@@ -355,7 +355,8 @@ void TextSelectionPopup::RaiseAbove( Layer target )
 
 void TextSelectionPopup::ShowPopup()
 {
-  if ( !mPopupShowing || mButtonsChanged )
+  if( ( !mPopupShowing || mButtonsChanged ) &&
+      ( Toolkit::TextSelectionPopup::NONE != mEnabledButtons ) )
   {
     Actor self = Self();
     AddPopupOptionsToToolbar( mShowIcons, mShowCaptions );