From 2380d2c97c8c95c353715c50b02a0f9fa57adc48 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 22 May 2010 19:11:28 +0200 Subject: Bugfix: delete from Archive Don't care if file really exists on fileysystem when deleting something from the archive. Otherwise we can't delete archived files. --- archiveviewwidget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'archiveviewwidget.cpp') 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 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); -- cgit v1.2.3-70-g09d2