mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
86ffedb50d
commit
c845e40aa8
@ -246,8 +246,8 @@ RemoteDirModel::RemoteDirModel(bool mode, QObject *parent)
|
||||
else if (details.type == DIR_TYPE_FILE) /* File */
|
||||
{
|
||||
// extensions predefined
|
||||
QString name;
|
||||
QString ext = QFileInfo(name).suffix();
|
||||
//QString name;
|
||||
QString ext = QFileInfo(QString::fromStdString(details.name)).suffix();
|
||||
if (ext == "jpg" || ext == "jpeg" || ext == "png" || ext == "gif"
|
||||
|| ext == "bmp" || ext == "ico" || ext == "svg")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user