diff options
author | Alon Levy <alevy@redhat.com> | 2010-07-01 13:48:58 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-01 13:48:58 +0200 |
commit | 0e16cadc7077d448a5b91be205226620e2bc5191 (patch) | |
tree | ee3f97a1a9189956c8ca5aac25ed8975e5ee9787 /client/hot_keys.cpp | |
parent | d69fd9408cecff72a9261ed5c1cc2de77aee37bb (diff) | |
download | spice-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.cpp | 4 |
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); |