Fixed icon display in RemoteDirModel

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@724 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2008-09-09 11:37:09 +00:00
parent 86ffedb50d
commit c845e40aa8

View File

@ -246,8 +246,8 @@ RemoteDirModel::RemoteDirModel(bool mode, QObject *parent)
else if (details.type == DIR_TYPE_FILE) /* File */ else if (details.type == DIR_TYPE_FILE) /* File */
{ {
// extensions predefined // extensions predefined
QString name; //QString name;
QString ext = QFileInfo(name).suffix(); QString ext = QFileInfo(QString::fromStdString(details.name)).suffix();
if (ext == "jpg" || ext == "jpeg" || ext == "png" || ext == "gif" if (ext == "jpg" || ext == "jpeg" || ext == "png" || ext == "gif"
|| ext == "bmp" || ext == "ico" || ext == "svg") || ext == "bmp" || ext == "ico" || ext == "svg")
{ {