mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
ignore any "empty" component data
svn path=/trunk/KDE/kdegraphics/okular/; revision=741067
This commit is contained in:
parent
1178a63b01
commit
ba7d0732c1
|
@ -2461,7 +2461,16 @@ QStringList Document::supportedMimeTypes() const
|
|||
|
||||
const KComponentData* Document::componentData() const
|
||||
{
|
||||
return d->m_generator ? d->m_generator->ownComponentData() : 0;
|
||||
if ( !d->m_generator )
|
||||
return 0;
|
||||
|
||||
const KComponentData* kcd = d->m_generator->ownComponentData();
|
||||
|
||||
// empty about data
|
||||
if ( kcd && kcd->aboutData() && kcd->aboutData()->programName().isEmpty() )
|
||||
return 0;
|
||||
|
||||
return kcd;
|
||||
}
|
||||
|
||||
void DocumentPrivate::requestDone( PixmapRequest * req )
|
||||
|
|
Loading…
Reference in a new issue