diff --git a/configure.ac b/configure.ac index bd10d8859c..03bc907df6 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,8 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N) AC_PREREQ([2.60]) define(_CLIENT_VERSION_MAJOR, 2) -define(_CLIENT_VERSION_MINOR, 1) -define(_CLIENT_VERSION_REVISION, 3) +define(_CLIENT_VERSION_MINOR, 2) +define(_CLIENT_VERSION_REVISION, 0) define(_CLIENT_VERSION_BUILD, 0) define(_CLIENT_VERSION_IS_RELEASE, true) define(_COPYRIGHT_YEAR, 2018) diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index a6e6ed4b0e..7ddd8a595d 100644 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -154,8 +154,10 @@ Q_OBJECT /** Get the icon for the administrator of the asset */ QPixmap pixmap = qvariant_cast(index.data(Qt::DecorationRole)); + bool admin = index.data(AssetTableModel::AdministratorRole).toBool(); + /** Need to know the heigh to the pixmap. If it is 0 we don't we dont own this asset so dont have room for the icon */ - int nIconSize = pixmap.height(); + int nIconSize = admin ? pixmap.height() : 0; int extraNameSpacing = 12; if (nIconSize) extraNameSpacing = 0; @@ -182,7 +184,7 @@ Q_OBJECT QLinearGradient gradient(mainRect.topLeft(), mainRect.bottomRight()); // Select the color of the gradient - if (index.data(AssetTableModel::AdministratorRole).toBool()) { + if (admin) { if (darkModeEnabled) { gradient.setColorAt(0, COLOR_ADMIN_CARD_DARK); gradient.setColorAt(1, COLOR_ADMIN_CARD_DARK);