]> git.sur5r.net Git - minitube/blobdiff - src/downloadmodel.cpp
Update upstream source from tag 'upstream/3.9.1'
[minitube] / src / downloadmodel.cpp
index d5d36e930269563ec8dba27da657743d74c65b27..17bbeaa4531354c70164c4af09bc822fa2a2af68 100644 (file)
@@ -41,7 +41,7 @@ QVariant DownloadModel::data(const QModelIndex &index, int role) const {
     int row = index.row();
     if (row < 0 || row >= rowCount()) return QVariant();
 
-    QList<DownloadItem*> items = downloadManager->getItems();
+    QVector<DownloadItem*> items = downloadManager->getItems();
     if (items.isEmpty()) return QVariant();
 
     switch (role) {
@@ -65,7 +65,8 @@ QVariant DownloadModel::data(const QModelIndex &index, int role) const {
 }
 
 void DownloadModel::sendReset() {
-    reset();
+    beginResetModel();
+    endResetModel();
 }
 
 void DownloadModel::setHoveredRow(int row) {