[vlmc-devel] ProjectManager: Don' t silently delete the project file when removing it from recent projects

Hugo Beauzée-Luyssen git at videolan.org
Wed Sep 5 17:43:03 CEST 2012


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Sep  4 23:50:41 2012 +0300| [5b531e7f68ee3e95c84ae5deed9dff47b54a1c19] | committer: Hugo Beauzée-Luyssen

ProjectManager: Don't silently delete the project file when removing it from recent projects

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=5b531e7f68ee3e95c84ae5deed9dff47b54a1c19
---

 src/Project/ProjectManager.cpp |    8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 6266e08..0ea3dbf 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -175,14 +175,6 @@ ProjectManager::removeProject( const QString& fileName )
 
     QSettings s;
     s.setValue( "RecentsProjects", m_recentsProjects );
-
-    QFile   projectFile( fileName );
-    if ( !projectFile.exists() )
-        return;
-
-    if( !QFile::remove( fileName ) )
-        QMessageBox::warning( NULL, tr( "Can't delete project file" ),
-                          tr( "Can't delete this project file: %1\nPlease delete it manually." ).arg( fileName ) );
 }
 
 void



More information about the Vlmc-devel mailing list