mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 18:17:08 -07:00
searchengine: use a single string for the search results number label
This commit is contained in:
parent
4420ae1996
commit
60ab8f87e9
1 changed files with 2 additions and 2 deletions
|
@ -254,7 +254,7 @@ void SearchEngine::on_search_button_clicked()
|
|||
nb_search_results = 0;
|
||||
search_result_line_truncated.clear();
|
||||
//on change le texte du label courrant
|
||||
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(misc::pythonExecutable(), params, QIODevice::ReadOnly);
|
||||
searchTimeout->start(180000); // 3min
|
||||
|
@ -326,7 +326,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…
Add table
Add a link
Reference in a new issue