QTfrontend/ui/page/pageplayrecord.cpp
changeset 7382 b158940f83e2
parent 7130 fcab1fd02bc6
child 7794 ab7b94c03bc9
--- a/QTfrontend/ui/page/pageplayrecord.cpp	Thu Jul 12 06:19:32 2012 -0400
+++ b/QTfrontend/ui/page/pageplayrecord.cpp	Thu Jul 12 23:31:06 2012 +0400
@@ -169,7 +169,11 @@
     if(!ok)
         QMessageBox::critical(this, tr("Error"), tr("Cannot delete file"));
     else
-        FillFromDir(recType);
+    {
+        int i = DemosList->row(curritem);
+        delete curritem;
+        DemosList->setCurrentRow(i < DemosList->count() ? i : DemosList->count() - 1);
+    }
 }
 
 bool PagePlayDemo::isSave()