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