diff --git a/retroshare-gui/src/gui/common/FilesDefs.cpp b/retroshare-gui/src/gui/common/FilesDefs.cpp index d573fdd64..61a277ca1 100644 --- a/retroshare-gui/src/gui/common/FilesDefs.cpp +++ b/retroshare-gui/src/gui/common/FilesDefs.cpp @@ -60,8 +60,11 @@ static QString getInfoFromFilename(const QString& filename, bool anyForUnknown, return image ? ":/images/FileTypeAny.png" : QApplication::translate("FilesDefs", "Subtitles"); } else if (ext == "nds") { return image ? ":/images/FileTypeAny.png" : QApplication::translate("FilesDefs", "Nintendo DS Rom"); + } else if (ext == "patch" || ext == "diff") { + return image ? ":/images/mimetypes/patch.png" : QApplication::translate("FilesDefs", "Patch"); } + if (anyForUnknown) { return image ? ":/images/FileTypeAny.png" : ""; } diff --git a/retroshare-gui/src/gui/images.qrc b/retroshare-gui/src/gui/images.qrc index 33fbf1963..dab6a797f 100644 --- a/retroshare-gui/src/gui/images.qrc +++ b/retroshare-gui/src/gui/images.qrc @@ -449,6 +449,7 @@ images/loader/progress.gif images/mimetypes/pdf.png images/mimetypes/rscollection-16.png + images/mimetypes/patch.png images/view-certificate-copy-32.png images/view-certificate-export-32.png images/textedit/textbold.png diff --git a/retroshare-gui/src/gui/images/mimetypes/patch.png b/retroshare-gui/src/gui/images/mimetypes/patch.png new file mode 100644 index 000000000..3925b7c2e Binary files /dev/null and b/retroshare-gui/src/gui/images/mimetypes/patch.png differ