summaryrefslogtreecommitdiffstats
path: root/src/sessiontreeitem.cpp
diff options
context:
space:
mode:
authorNils Schwabe2014-03-07 16:23:16 +0100
committerNils Schwabe2014-03-07 16:23:16 +0100
commit56d213b3c8984ef033784e60fccf25d3cfbdbb13 (patch)
treeac6fdf1487a2051a702b58cae349cd6c6e3d6e84 /src/sessiontreeitem.cpp
parentfixed umlauts in xml (diff)
downloadvmchooser2-56d213b3c8984ef033784e60fccf25d3cfbdbb13.tar.gz
vmchooser2-56d213b3c8984ef033784e60fccf25d3cfbdbb13.tar.xz
vmchooser2-56d213b3c8984ef033784e60fccf25d3cfbdbb13.zip
Added function to add info entries if the xml file could not be loaded
Diffstat (limited to 'src/sessiontreeitem.cpp')
-rw-r--r--src/sessiontreeitem.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sessiontreeitem.cpp b/src/sessiontreeitem.cpp
index 45a4774..bdc3edf 100644
--- a/src/sessiontreeitem.cpp
+++ b/src/sessiontreeitem.cpp
@@ -17,6 +17,10 @@ void SessionTreeItem::appendChild(SessionTreeItem *item) {
children_.append(item);
}
+void SessionTreeItem::removeChild(SessionTreeItem *item) {
+ children_.removeOne(item);
+}
+
SessionTreeItem *SessionTreeItem::child(int row) {
return children_.value(row);
}