should fix eol problems on windows

This commit is contained in:
Christophe Dumez 2007-12-12 21:45:44 +00:00
parent 699d4b1161
commit 5d64373798
2 changed files with 4 additions and 0 deletions

View file

@ -318,6 +318,7 @@ void SearchEngine::downloadSelectedItem(const QModelIndex& index){
// line to search results calling appendSearchResult().
void SearchEngine::readSearchOutput(){
QByteArray output = searchProcess->readAllStandardOutput();
output.replace("\r", "");
QList<QByteArray> lines_list = output.split('\n');
QByteArray line;
if(!search_result_line_truncated.isEmpty()){