diff options
-rw-r--r-- | src/vsession.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vsession.cpp b/src/vsession.cpp index e8e301e..30cbb88 100644 --- a/src/vsession.cpp +++ b/src/vsession.cpp @@ -235,8 +235,10 @@ void VSession::addUserAndHostname() { QString image(this->getAttribute("image_name")); if (QFileInfo(image).isRelative()) { // make path to image absolute - this->addNodeWithAttribute("image_name", + this->addNodeWithAttribute("image_path", this->baseDirPath_ + "/" + image); + } else { + this->addNodeWithAttribute("image_path", image); } // insert computername as the first child of <eintrag> |