X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=searchresultsdialog.cpp;h=db0192b8fc0e4da6912b5c539cab09c76a0fcd20;hb=9f73b19627aba7a802daa22df7b7683fd47ec809;hp=15d69772be0819cc1526431e7e30e61dc7fbda6d;hpb=12c2b4befee954368291aa1b9706bde22c3119e2;p=dorian diff --git a/searchresultsdialog.cpp b/searchresultsdialog.cpp index 15d6977..db0192b 100644 --- a/searchresultsdialog.cpp +++ b/searchresultsdialog.cpp @@ -89,9 +89,11 @@ void SearchResultsDialog::onEndDownload(int status, const Search::Result &result Library::instance()->add(fileName); int row = results.indexOf(result); if (-1 != row) { + results.removeAt(row); model()->removeRow(row); } - Platform::instance()->information(tr("Downloaded \"%1\"\nand added to the " - "library").arg(result.title), this); + Platform::instance()-> + information(tr("Downloaded \"%1\"\nand added to the " + "library").arg(result.title), this); } }