mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Don't check the type value if it is null
This commit is contained in:
@ -522,6 +522,10 @@ QStringList ComicInfo::getTags()
|
||||
|
||||
QString ComicInfo::getTypeString()
|
||||
{
|
||||
if (type.isNull()) {
|
||||
return QStringLiteral("Null");
|
||||
}
|
||||
|
||||
if (!type.canConvert<YACReader::FileType>()) {
|
||||
assert(false);
|
||||
return QStringLiteral("Unknown");
|
||||
|
Reference in New Issue
Block a user