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, 1 insertions, 11 deletions
diff --git a/src/vsession.cpp b/src/vsession.cpp
index f4c2326..e2e359a 100644
--- a/src/vsession.cpp
+++ b/src/vsession.cpp
@@ -54,10 +54,6 @@ QString VSession::getAttribute(const QString &nodeName,
const QString &attribute) const {
QDomDocument doc = this->doc_;
QDomNode n = doc.namedItem("eintrag").namedItem(nodeName);
- if (n.isNull()) {
- // TODO
- }
-
return this->doc_.namedItem("eintrag").namedItem(nodeName).toElement()
.attribute(attribute);
}
@@ -155,7 +151,6 @@ void VSession::addPrinters(const QString& script, const QString& type) {
continue;
}
- // TODO: check return values, exceptions, ...
QDomElement printerNode(doc_.createElement(type));
printerNode.setAttribute("name", tokens.at(1));
printerNode.setAttribute("path",
@@ -257,11 +252,7 @@ void VSession::mergePoolXml() {
bool VSession::run() const {
QString command = getAttribute("command");
if (!command.isEmpty()) {
- if (QProcess::startDetached(command)) {
- // TODO: save session
- return true;
- }
- return false;
+ return QProcess::startDetached(command);
}
VSession session = *this;
@@ -302,7 +293,6 @@ QList<Session*> VSession::readXmlFile(const QString& filepath) {
}
file.close();
- // TODO: iterate over all <settings> child nodes?
QString dirName(QFileInfo(filepath).dir().absolutePath());
QDomElement settingsNode = doc.firstChildElement("settings");
for (QDomElement el(settingsNode.firstChildElement("eintrag"));