mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-09 11:51:03 +00:00
searchengine: use a single string for the search results number label
This commit is contained in:
parent
0f35bac605
commit
3a9cf70228
@ -255,7 +255,7 @@ void SearchEngine::on_search_button_clicked()
|
||||
nb_search_results = 0;
|
||||
search_result_line_truncated.clear();
|
||||
// Changing the text of the current label
|
||||
activeSearchTab->getCurrentLabel()->setText(tr("Results") + " <i>(0)</i>:");
|
||||
activeSearchTab->getCurrentLabel()->setText(tr("Results <i>(%1)</i>:", "i.e: Search results").arg(0));
|
||||
// Launch search
|
||||
searchProcess->start(Utils::Misc::pythonExecutable(), params, QIODevice::ReadOnly);
|
||||
searchTimeout->start(180000); // 3min
|
||||
@ -327,7 +327,7 @@ void SearchEngine::readSearchOutput()
|
||||
search_result_line_truncated = lines_list.takeLast().trimmed();
|
||||
foreach (const QByteArray &line, lines_list)
|
||||
appendSearchResult(QString::fromUtf8(line));
|
||||
activeSearchTab->getCurrentLabel()->setText(tr("Results") + QString::fromUtf8(" <i>(") + QString::number(nb_search_results) + QString::fromUtf8(")</i>:"));
|
||||
activeSearchTab->getCurrentLabel()->setText(tr("Results <i>(%1)</i>:", "i.e: Search results").arg(nb_search_results));
|
||||
}
|
||||
|
||||
void SearchEngine::downloadFinished(int exitcode, QProcess::ExitStatus)
|
||||
|
Loading…
x
Reference in New Issue
Block a user