]> git.sur5r.net Git - minitube/blobdiff - src/ListModel.cpp
Imported Upstream version 1.9
[minitube] / src / ListModel.cpp
index 468435f8908060b7cabf170de1825183d0792f23..851c15293d36f2cfdf5d9e619dbab0d4656e3038 100644 (file)
@@ -197,6 +197,10 @@ void ListModel::searchFinished(int total) {
 
     // update the message item
     emit dataChanged( createIndex( MAX_ITEMS, 0 ), createIndex( MAX_ITEMS, columnCount() - 1 ) );
+
+    if (!youtubeSearch->getSuggestions().isEmpty()) {
+        emit haveSuggestions(youtubeSearch->getSuggestions());
+    }
 }
 
 void ListModel::searchError(QString message) {