mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 03:39:39 +03:00
- Display "Unknown" in search engine result columns where value is -1
This commit is contained in:
parent
0125a2b521
commit
ecc41fbc60
1 changed files with 4 additions and 1 deletions
|
@ -425,7 +425,10 @@ void SearchEngine::appendSearchResult(QString line){
|
|||
int row = SearchListModel->rowCount();
|
||||
SearchListModel->insertRow(row);
|
||||
for(int i=0; i<5; ++i){
|
||||
SearchListModel->setData(SearchListModel->index(row, i), QVariant(parts.at(i)));
|
||||
if(parts.at(i).toFloat() == -1)
|
||||
SearchListModel->setData(SearchListModel->index(row, i), tr("Unknown"));
|
||||
else
|
||||
SearchListModel->setData(SearchListModel->index(row, i), QVariant(parts.at(i)));
|
||||
}
|
||||
// Add url to searchResultsUrls associative array
|
||||
searchResultsUrls.insert(filename, url);
|
||||
|
|
Loading…
Reference in a new issue