diff options
-rw-r--r-- | playerwidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/playerwidget.cpp b/playerwidget.cpp index 5a69744..a37aea6 100644 --- a/playerwidget.cpp +++ b/playerwidget.cpp @@ -704,9 +704,12 @@ void PlayerWidget::doDeleteFiles(){ QFileInfo file(cur); if(file.isFile()){ QFile::remove(cur); + continue; } if(file.isDir()){ - file.dir().removeRecursively(); + QString d = file.absoluteFilePath(); + QDir toDel(d); + toDel.removeRecursively(); } } doPopulateByFolder(); |