summaryrefslogtreecommitdiffstats
path: root/src/vsession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vsession.cpp')
-rw-r--r--src/vsession.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vsession.cpp b/src/vsession.cpp
index bcd13b0..bff0bc6 100644
--- a/src/vsession.cpp
+++ b/src/vsession.cpp
@@ -35,6 +35,17 @@ void VSession::addNodeWithAttribute(const QString& nodeName,
node.setAttribute(attribute, value);
}
+QString VSession::icon() const {
+ QString icon(getAttribute("icon"));
+ if (icon.isEmpty()) {
+ icon = "vmware";
+ } else if (icon.contains(".") && QDir::isRelativePath(icon)) {
+ // non-built-in icon with relative path
+ icon.prepend(baseDirPath_ + "/");
+ }
+ return icon;
+ }
+
QString VSession::toXml() const {
return this->doc_.toString();
}
@@ -293,6 +304,7 @@ QList<Session*> VSession::readXmlDir(const QString& path) {
}
bool VSession::operator<(const Session& other) const {
+ printf("VSession::operator< called\n");
int p0 = this->priority();
int p1 = other.priority();