mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Make compatible with nova2 plugins (new API)
This commit is contained in:
@@ -594,7 +594,7 @@ void SearchEngine::searchFinished(int exitcode,QProcess::ExitStatus){
|
||||
// SLOT to append one line to search results list
|
||||
// Line is in the following form :
|
||||
// file url | file name | file size | nb seeds | nb leechers | Search engine url
|
||||
void SearchEngine::appendSearchResult(QString line){
|
||||
void SearchEngine::appendSearchResult(const QString &line){
|
||||
if(!currentSearchTab) {
|
||||
if(searchProcess->state() != QProcess::NotRunning){
|
||||
searchProcess->terminate();
|
||||
@@ -606,7 +606,7 @@ void SearchEngine::appendSearchResult(QString line){
|
||||
return;
|
||||
}
|
||||
QStringList parts = line.split("|");
|
||||
if(parts.size() != 6){
|
||||
if(parts.size() < 6){
|
||||
return;
|
||||
}
|
||||
Q_ASSERT(currentSearchTab);
|
||||
|
||||
@@ -91,7 +91,7 @@ protected slots:
|
||||
#else
|
||||
void closeTab(int index);
|
||||
#endif
|
||||
void appendSearchResult(QString line);
|
||||
void appendSearchResult(const QString& line);
|
||||
void searchFinished(int exitcode,QProcess::ExitStatus);
|
||||
void readSearchOutput();
|
||||
void searchStarted();
|
||||
|
||||
Reference in New Issue
Block a user