|
From: Tapio V. <aa...@us...> - 2011-02-03 12:00:53
|
Module: editor
Branch: master
Commit: bc7cc539a6a7ceb6a187ffece91e9e74f5507072
Author: Tapio Vierros <tap...@gm...>
Date: Thu Feb 3 14:00:10 2011 +0200
Add an error message for unknown operation type.
---
notelabelmanager.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/notelabelmanager.cc b/notelabelmanager.cc
index 4b326c8..2bc8556 100644
--- a/notelabelmanager.cc
+++ b/notelabelmanager.cc
@@ -1,3 +1,4 @@
+#include <iostream>
#include <QString>
#include <QInputDialog>
#include <QLineEdit>
@@ -211,6 +212,8 @@ void NoteLabelManager::doOperation(const Operation& op, Operation::OperationFlag
n->setLyric(op.s(2));
} else if (action == "TYPE") {
n->setType(op.i(2));
+ } else {
+ std::cerr << "Error: Unkown operation type " << action.toStdString() << std::endl;
}
n->createPixmap(n->size());
}
|