Skip to content

Commit

Permalink
itemimage: Fix hidden image
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Mar 27, 2017
1 parent 7310620 commit 4f53c6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/itemimage/itemimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ ItemImage::ItemImage(

QObject *ItemImage::createExternalEditor(const QModelIndex &index, QWidget *parent) const
{
if ( index.data(contentType::isHidden).toBool() )
return nullptr;

QString mime;
QByteArray data;
if ( !getImageData(index, &data, &mime) )
Expand Down Expand Up @@ -172,6 +169,9 @@ ItemImageLoader::~ItemImageLoader() = default;

ItemWidget *ItemImageLoader::create(const QModelIndex &index, QWidget *parent, bool preview) const
{
if ( index.data(contentType::isHidden).toBool() )
return nullptr;

// TODO: Just check if image provided and load it in different thread.
QPixmap pix;
if ( !getPixmapFromData(index, &pix) )
Expand Down

0 comments on commit 4f53c6e

Please sign in to comment.