X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilelistmodel.cpp;fp=src%2Fgui%2Ffilelistmodel.cpp;h=626b296d9b637af178649f089da61cb4d164e421;hb=6bbf8a69b977644a55a4abdea71dfa9e3bb6c087;hp=8308c5c946123c3511c1eb07f7b776e8519c1123;hpb=4d8b874c9d8cb3f94fc2174d2ae24fb9ebb09bcc;p=virtualjaguar diff --git a/src/gui/filelistmodel.cpp b/src/gui/filelistmodel.cpp index 8308c5c..626b296 100644 --- a/src/gui/filelistmodel.cpp +++ b/src/gui/filelistmodel.cpp @@ -131,6 +131,9 @@ void FileListModel::AddData(unsigned long index, QString str, QImage img, unsign data.crc = fileCrc; list.push_back(data); +//This is probably not the best way to do this, it prevents the user from using the +//list while it populates. +#warning "!!! AddData calls reset() for every addition, this is bad !!!" reset(); }