Skip to content

Commit

Permalink
GUI: Remove warning when trying to preview a .ico file (not a xoreos …
Browse files Browse the repository at this point in the history
…resource)
  • Loading branch information
fdde authored and DrMcCoy committed Dec 29, 2017
1 parent 98c64ab commit 82b3e91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/panelpreviewimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,8 @@ void PanelPreviewImage::setItem(const ResourceTreeItem *item) {
_originalPixmap = QPixmap();
_labelImage->setPixmap(_originalPixmap);

if (item->getResourceType() != Aurora::kResourceImage &&
item->getFileType() != Aurora::FileType::kFileTypeICO)
return;
if (item->getResourceType() != Aurora::kResourceImage)
return;

_currentItem = item;

Expand Down

0 comments on commit 82b3e91

Please sign in to comment.