summaryrefslogtreecommitdiffstats
path: root/client/hot_keys.cpp
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-07-01 13:48:58 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-01 13:48:58 +0200
commit0e16cadc7077d448a5b91be205226620e2bc5191 (patch)
treeee3f97a1a9189956c8ca5aac25ed8975e5ee9787 /client/hot_keys.cpp
parentd69fd9408cecff72a9261ed5c1cc2de77aee37bb (diff)
downloadspice-0e16cadc7077d448a5b91be205226620e2bc5191.tar.gz
spice-0e16cadc7077d448a5b91be205226620e2bc5191.tar.xz
spice-0e16cadc7077d448a5b91be205226620e2bc5191.zip
Make CEGUI optional
This makes the CEGUI dependency optional and off by default. Restoring previous behaviour of exiting on disconnect if disabled.
Diffstat (limited to 'client/hot_keys.cpp')
-rw-r--r--client/hot_keys.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/hot_keys.cpp b/client/hot_keys.cpp
index 1d3c8745..d6564b70 100644
--- a/client/hot_keys.cpp
+++ b/client/hot_keys.cpp
@@ -138,7 +138,9 @@ void HotKeysParser::add_hotkey(const std::string& hotkey, const CommandsMap& com
CommandsMap::const_iterator command = commands_map.find(command_name);
if (commands_map.find(command_name) == commands_map.end()) {
- THROW("invalid action bname");
+ char buf[1000];
+ sprintf(buf, "invalid action bname %s", command_name.c_str());
+ THROW(buf);
}
int command_id = commands_map.find(command_name)->second;
std::string keys = hotkey.substr(key_start + 1);