From: Flavio Tordini Date: Mon, 2 Nov 2009 09:33:02 +0000 (+0100) Subject: Check for invokeMethod success X-Git-Tag: 0.8~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f426e6afe4eed49ef2d4478cd7df4110ba4613e2;p=minitube Check for invokeMethod success --- 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(); }