diff --git a/src/app/LicenseChecker.h b/src/app/LicenseChecker.h index 55320e36..551b18fc 100644 --- a/src/app/LicenseChecker.h +++ b/src/app/LicenseChecker.h @@ -46,12 +46,11 @@ private: std::string licenseCheck = appSettings->getLicenseCheck(); std::string appPath = AppPath::getAppPath(); // for easier debugging... FilePath p(appPath); - LOG_INFO_STREAM(<< "gonna check location: " << appPath); + if (!License::checkLocation(p.absolute().str(), licenseCheck)) { break; } - LOG_INFO_STREAM(<< "öhm...? done checking?"); std::string licenseString = appSettings->getLicenseString(); if (licenseString.size() == 0) diff --git a/src/lib_gui/qt/view/graphElements/QtGraphNodeAccess.cpp b/src/lib_gui/qt/view/graphElements/QtGraphNodeAccess.cpp index c3adaeb0..6eab6c17 100644 --- a/src/lib_gui/qt/view/graphElements/QtGraphNodeAccess.cpp +++ b/src/lib_gui/qt/view/graphElements/QtGraphNodeAccess.cpp @@ -37,13 +37,10 @@ QtGraphNodeAccess::QtGraphNodeAccess(TokenComponentAccess::AccessType accessType break; } - QtDeviceScaledPixmap pixmap(QString::fromStdString(ResourcePaths::getGuiPath() + "graph_view/images/" + accessString + ".png")); - - pixmap.scaleToHeight(m_accessIconSize); - if (fileName.size() > 0) { - QtDeviceScaledPixmap pixmap(QString::fromStdString(ResourcePaths::getGuiPath() + fileName + ".png")); + QtDeviceScaledPixmap pixmap( + QString::fromStdString(ResourcePaths::getGuiPath() + "graph_view/images/" + fileName + ".png")); pixmap.scaleToHeight(m_accessIconSize); m_accessIcon = new QGraphicsPixmapItem(pixmap.pixmap(), this);