src: Fixed errors in file path switch
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user