Android: Remove invalid error message

All usage of context menus prints out an error message because
onContextMenuClosed() is called more than once. We just return
silently instead if the method is called after the menu has
already been closed.

Change-Id: Ifa27ed42d188fdf670f09c4b1450b9fec0d5941f
Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2013-11-26 10:13:04 +01:00 committed by The Qt Project
parent e903b5cdda
commit 939a001c3a

View File

@ -858,10 +858,8 @@ public class QtActivityDelegate
public void onContextMenuClosed(Menu menu)
{
if (!m_contextMenuVisible) {
Log.e(QtNative.QtTAG, "invalid onContextMenuClosed call");
if (!m_contextMenuVisible)
return;
}
m_contextMenuVisible = false;
QtNative.onContextMenuClosed(menu);
}