]> git.sur5r.net Git - minitube/commitdiff
Check for invokeMethod success
authorFlavio Tordini <flavio.tordini@gmail.com>
Mon, 2 Nov 2009 09:33:02 +0000 (10:33 +0100)
committerFlavio Tordini <flavio.tordini@gmail.com>
Mon, 2 Nov 2009 09:33:02 +0000 (10:33 +0100)
src/MediaView.cpp

index 9d804519d371a8c0e12d2d11b669d2f44a99151c..fb74443cc976a64c5acb36ba21b486df1af29e36 100644 (file)
@@ -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();
 }