diff --git a/retroshare-gui/src/rsiface/RemoteDirModel.cpp b/retroshare-gui/src/rsiface/RemoteDirModel.cpp index a61bca9c9..02cdd6af8 100644 --- a/retroshare-gui/src/rsiface/RemoteDirModel.cpp +++ b/retroshare-gui/src/rsiface/RemoteDirModel.cpp @@ -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") {