From 98e30d25dbdfbfb11f5cce1d74ef009ebecdfaf8 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Sat, 23 Jan 2016 14:28:14 +0100 Subject: Popup: remove the warning about not being visible Same as 89e058, but for close(). If the popup is already closed, then close() should be just a no-op. Change-Id: Icf1a3c5f67aad9b76432608802aa345881f5b960 Reviewed-by: J-P Nurmi --- src/templates/qquickpopup.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/templates/qquickpopup.cpp') diff --git a/src/templates/qquickpopup.cpp b/src/templates/qquickpopup.cpp index f3be6189..7df828ae 100644 --- a/src/templates/qquickpopup.cpp +++ b/src/templates/qquickpopup.cpp @@ -562,8 +562,7 @@ void QQuickPopup::close() { Q_D(QQuickPopup); if (!d->overlay) { - // TODO This could mean we opened the popup item in a plain QQuickWindow - qmlInfo(this) << "trying to close non-visible Popup."; + // popup already closed return; } -- cgit v1.2.3