mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
- fix for last commit
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.3.3
|
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.3.3
|
||||||
- BUGFIX: Fixed Web UI torrent upload form
|
- BUGFIX: Fixed Web UI torrent upload form
|
||||||
|
- BUGFIX: Fixed unicode support in search engine
|
||||||
|
|
||||||
* Sat Mar 7 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.3.2
|
* Sat Mar 7 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.3.2
|
||||||
- BUGFIX: Fix top toolbar disabling
|
- BUGFIX: Fix top toolbar disabling
|
||||||
|
|||||||
@@ -336,8 +336,8 @@ void SearchEngine::appendSearchResult(QString line){
|
|||||||
if(parts.size() != 6){
|
if(parts.size() != 6){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QString url = parts.takeFirst();
|
QString url = parts.takeFirst().trimmed();
|
||||||
QString filename = parts.first();
|
QString filename = parts.first().trimmed();
|
||||||
// XXX: Two results can't have the same name (right?)
|
// XXX: Two results can't have the same name (right?)
|
||||||
if(searchResultsUrls.contains(filename)){
|
if(searchResultsUrls.contains(filename)){
|
||||||
return;
|
return;
|
||||||
@@ -346,10 +346,10 @@ void SearchEngine::appendSearchResult(QString line){
|
|||||||
int row = currentSearchTab->getCurrentSearchListModel()->rowCount();
|
int row = currentSearchTab->getCurrentSearchListModel()->rowCount();
|
||||||
currentSearchTab->getCurrentSearchListModel()->insertRow(row);
|
currentSearchTab->getCurrentSearchListModel()->insertRow(row);
|
||||||
for(int i=0; i<5; ++i){
|
for(int i=0; i<5; ++i){
|
||||||
if(parts.at(i).toFloat() == -1 && i != SIZE)
|
if(parts.at(i).trimmed().toFloat() == -1 && i != SIZE)
|
||||||
currentSearchTab->getCurrentSearchListModel()->setData(currentSearchTab->getCurrentSearchListModel()->index(row, i), tr("Unknown"));
|
currentSearchTab->getCurrentSearchListModel()->setData(currentSearchTab->getCurrentSearchListModel()->index(row, i), tr("Unknown"));
|
||||||
else
|
else
|
||||||
currentSearchTab->getCurrentSearchListModel()->setData(currentSearchTab->getCurrentSearchListModel()->index(row, i), QVariant(parts.at(i)));
|
currentSearchTab->getCurrentSearchListModel()->setData(currentSearchTab->getCurrentSearchListModel()->index(row, i), QVariant(parts.at(i).trimmed()));
|
||||||
}
|
}
|
||||||
// Add url to searchResultsUrls associative array
|
// Add url to searchResultsUrls associative array
|
||||||
searchResultsUrls.insert(filename, url);
|
searchResultsUrls.insert(filename, url);
|
||||||
|
|||||||
Reference in New Issue
Block a user