Added a default FileType icon for the "patch" and "diff" extensions.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6983 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-01-03 19:32:53 +00:00
parent 76b3ccc1a5
commit 469da4914f
3 changed files with 4 additions and 0 deletions

View file

@ -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" : "";
}