mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 07:41:20 -04:00
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:
parent
76b3ccc1a5
commit
469da4914f
3 changed files with 4 additions and 0 deletions
|
@ -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" : "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue