mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
should fix eol problems on windows
This commit is contained in:
parent
699d4b1161
commit
5d64373798
2 changed files with 4 additions and 0 deletions
|
@ -256,6 +256,7 @@ bool engineSelectDlg::checkInstalled(QString plugin_name) const {
|
||||||
nova.waitForStarted();
|
nova.waitForStarted();
|
||||||
nova.waitForFinished();
|
nova.waitForFinished();
|
||||||
QByteArray result = nova.readAll();
|
QByteArray result = nova.readAll();
|
||||||
|
result = result.replace("\n\r", "");
|
||||||
result = result.replace("\n", "");
|
result = result.replace("\n", "");
|
||||||
QList<QByteArray> plugins_list = result.split(',');
|
QList<QByteArray> plugins_list = result.split(',');
|
||||||
return plugins_list.contains(plugin_name.toUtf8());
|
return plugins_list.contains(plugin_name.toUtf8());
|
||||||
|
@ -287,6 +288,7 @@ void engineSelectDlg::loadSupportedSearchEngines(bool first) {
|
||||||
nova.waitForStarted();
|
nova.waitForStarted();
|
||||||
nova.waitForFinished();
|
nova.waitForFinished();
|
||||||
QByteArray result = nova.readAll();
|
QByteArray result = nova.readAll();
|
||||||
|
result = result.replace("\n\r", "");
|
||||||
result = result.replace("\n", "");
|
result = result.replace("\n", "");
|
||||||
qDebug("read: %s", result.data());
|
qDebug("read: %s", result.data());
|
||||||
QByteArray e;
|
QByteArray e;
|
||||||
|
@ -303,6 +305,7 @@ void engineSelectDlg::loadSupportedSearchEngines(bool first) {
|
||||||
nova.waitForStarted();
|
nova.waitForStarted();
|
||||||
nova.waitForFinished();
|
nova.waitForFinished();
|
||||||
result = nova.readAll();
|
result = nova.readAll();
|
||||||
|
result = result.replace("\n\r", "");
|
||||||
result = result.replace("\n", "");
|
result = result.replace("\n", "");
|
||||||
qDebug("read: %s", result.data());
|
qDebug("read: %s", result.data());
|
||||||
unsigned int i = 0;
|
unsigned int i = 0;
|
||||||
|
|
|
@ -318,6 +318,7 @@ void SearchEngine::downloadSelectedItem(const QModelIndex& index){
|
||||||
// line to search results calling appendSearchResult().
|
// line to search results calling appendSearchResult().
|
||||||
void SearchEngine::readSearchOutput(){
|
void SearchEngine::readSearchOutput(){
|
||||||
QByteArray output = searchProcess->readAllStandardOutput();
|
QByteArray output = searchProcess->readAllStandardOutput();
|
||||||
|
output.replace("\r", "");
|
||||||
QList<QByteArray> lines_list = output.split('\n');
|
QList<QByteArray> lines_list = output.split('\n');
|
||||||
QByteArray line;
|
QByteArray line;
|
||||||
if(!search_result_line_truncated.isEmpty()){
|
if(!search_result_line_truncated.isEmpty()){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue