# HG changeset patch # User unc0rr # Date 1342121466 -14400 # Node ID b158940f83e2b57ac9cc5fd747287a8ea1041e12 # Parent ac9ce7f033df4a80483f1b68fdd215f077432c95 When removing a record, set selection on the next item in the list diff -r ac9ce7f033df -r b158940f83e2 QTfrontend/ui/page/pageplayrecord.cpp --- 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()