From f426e6afe4eed49ef2d4478cd7df4110ba4613e2 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Mon, 2 Nov 2009 10:33:02 +0100 Subject: [PATCH] Check for invokeMethod success --- src/MediaView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MediaView.cpp b/src/MediaView.cpp index 9d80451..fb74443 100644 --- a/src/MediaView.cpp +++ b/src/MediaView.cpp @@ -286,14 +286,14 @@ void MediaView::gotStreamUrl(QUrl streamUrl) { qDebug() << "Cannot get sender"; return; } - bool ret = QMetaObject::invokeMethod(qApp->topLevelWidgets().first(), "hdIndicator", Qt::QueuedConnection, Q_ARG(bool, video->isHd())); - + bool ret = QMetaObject::invokeMethod(qApp->topLevelWidgets().first(), "hdIndicator", Qt::DirectConnection, Q_ARG(bool, video->isHd())); + if (!ret) qDebug() << "hdIndicator invokeMethod failed"; } void MediaView::itemActivated(const QModelIndex &index) { if (listModel->rowExists(index.row())) listModel->setActiveRow(index.row()); - // the user doucleclicked on the "Search More" item + // the user doubleclicked on the "Search More" item else listModel->searchMore(); } -- 2.39.5