mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-18 05:44:14 -05: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 */
|
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")
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user