Fix linked cardwidget not showing PT/Loyalty

This commit is contained in:
Jeff 2015-08-16 19:02:55 -04:00
parent 26e63a9a3a
commit f3c43cb50f

View file

@ -99,14 +99,12 @@ void CardInfoWidget::minimizeClicked(int newMinimized)
bool CardInfoWidget::shouldShowPowTough() bool CardInfoWidget::shouldShowPowTough()
{ {
// return (!info->getPowTough().isEmpty() && (minimized != 0)); return !info->getPowTough().isEmpty();
return (minimized != 0);
} }
bool CardInfoWidget::shouldShowLoyalty() bool CardInfoWidget::shouldShowLoyalty()
{ {
// return ((info->getLoyalty() > 0) && (minimized != 0)); return (info->getLoyalty() > 0);
return (minimized != 0);
} }
void CardInfoWidget::setMinimized(int _minimized) void CardInfoWidget::setMinimized(int _minimized)