Give Clementine the answer to the ultimate question of life, the universe and everything

Probably my most valuable contribution so far
This commit is contained in:
Arnaud Bienner 2014-07-24 23:45:15 +02:00
parent f10450cb97
commit 0976cc7e5c
1 changed files with 9 additions and 3 deletions

View File

@ -361,9 +361,15 @@ void PlaylistContainer::UpdateNoMatchesLabel() {
QString text;
if (has_rows && !has_results) {
text =
tr("No matches found. Clear the search box to show the whole playlist "
"again.");
if (ui_->filter->text().trimmed().compare("the answer to life the universe "
"and everything",
Qt::CaseInsensitive) == 0) {
text = "42";
} else {
text =
tr("No matches found. Clear the search box to show the whole playlist "
"again.");
}
}
if (!text.isEmpty()) {