diff options
| author | Arno <am@disconnect.de> | 2010-05-22 19:11:28 +0200 | 
|---|---|---|
| committer | Arno <am@disconnect.de> | 2010-05-22 19:11:28 +0200 | 
| commit | 2380d2c97c8c95c353715c50b02a0f9fa57adc48 (patch) | |
| tree | 2e039953e1c35adef48da7a60a483f3f0726d77f /archiveviewwidget.cpp | |
| parent | 8ea5721547c90eee695ed91c31908c31f643eabd (diff) | |
| download | SheMov-2380d2c97c8c95c353715c50b02a0f9fa57adc48.tar.gz SheMov-2380d2c97c8c95c353715c50b02a0f9fa57adc48.tar.bz2 SheMov-2380d2c97c8c95c353715c50b02a0f9fa57adc48.zip  | |
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.
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);  | 
