1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 00:04:06 +00:00

fix: crash in capitalizing trackername when no trackername (#2076)

This commit is contained in:
Charles Kerr 2021-11-01 11:31:55 -05:00 committed by GitHub
parent eaeed301fa
commit 3318430455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,10 @@ void FaviconCache::ensureCacheDirHasBeenScanned()
QString FaviconCache::getDisplayName(Key const& key) QString FaviconCache::getDisplayName(Key const& key)
{ {
auto name = key; auto name = key;
name[0] = name.at(0).toTitleCase(); if (!name.isEmpty())
{
name.front() = name.front().toTitleCase();
}
return name; return name;
} }