src: Fixed errors in file path switch

This commit is contained in:
Eberhard Graether
2016-01-27 12:20:46 +01:00
parent 8d6220dafb
commit 6cadab1b23
2 changed files with 3 additions and 7 deletions
+1 -2
View File
@@ -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);