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:
parent
eaeed301fa
commit
3318430455
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue