diff options
Diffstat (limited to 'archiveviewwidget.cpp')
-rw-r--r-- | archiveviewwidget.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/archiveviewwidget.cpp b/archiveviewwidget.cpp index 59ec354..5c0c22c 100644 --- a/archiveviewwidget.cpp +++ b/archiveviewwidget.cpp @@ -287,10 +287,8 @@ void ArchiveViewWidget::deleteFromArchive(){ QModelIndex real = mProxy->mapToSource(i); QString path = real.data(MovieModel::FullPathRole).toString(); QList<QVariant> covers = real.data(MovieModel::CoverPathRole).toList(); - bool r = QFile::remove(path); - if(r){ - mMovieModel->removeMovie(real); - } + QFile::remove(path); + mMovieModel->removeMovie(real); foreach(QVariant c, covers){ QString cpath = c.toString(); QFile::remove(cpath); |