use VideoItem::prefix instead of VideoItem::name as suggested by Stepan777
authorkoda
Mon, 29 Oct 2012 21:14:48 +0100
changeset 7881 3ac3ff6c7c4f
parent 7880 0efaf70681bd
child 7882 35dfc54ba2c6
use VideoItem::prefix instead of VideoItem::name as suggested by Stepan777
QTfrontend/ui/page/pagevideos.cpp
--- a/QTfrontend/ui/page/pagevideos.cpp	Mon Oct 29 16:23:45 2012 -0400
+++ b/QTfrontend/ui/page/pagevideos.cpp	Mon Oct 29 21:14:48 2012 +0100
@@ -862,8 +862,8 @@
     {
         cfgdir->remove("Videos/" + item->name);
         // we have no idea whether screenshot is going to be bmp or png so let's delete both
-        cfgdir->remove("VideoTemp/" + item->name.section(".", 0, 0) + ".png");
-        cfgdir->remove("VideoTemp/" + item->name.section(".", 0, 0) + ".bmp");
+        cfgdir->remove("VideoTemp/" + item->prefix + ".png");
+        cfgdir->remove("VideoTemp/" + item->prefix + ".bmp");
     }
 
 // this code is for removing several files when multiple selection is enabled