summaryrefslogtreecommitdiffstats
path: root/client/application.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-02-03 13:11:11 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-02-03 13:11:11 +0100
commit67178944d26a97a6fb73ddf92b7fefdec6a99fd9 (patch)
treeab9f1b9401c6315f1af0355de31f4ac952edfa1a /client/application.h
parente3fb720cd11cf5485f30664b3fd0526249081ed2 (diff)
downloadspice-67178944d26a97a6fb73ddf92b7fefdec6a99fd9.tar.gz
spice-67178944d26a97a6fb73ddf92b7fefdec6a99fd9.tar.xz
spice-67178944d26a97a6fb73ddf92b7fefdec6a99fd9.zip
Handle Application::set_hotkeys failure
Application::set_hotkeys can throw an exception if it fails parsing the string describing the hotkeys to set. Currently this exception is uncaught which causes spicec to terminate when the controller tries to set invalid hotkeys. Fall back to using the default hotkeys when the controller sends an invalid hotkeys string.
Diffstat (limited to 'client/application.h')
-rw-r--r--client/application.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/application.h b/client/application.h
index ac51cd2a..c513d948 100644
--- a/client/application.h
+++ b/client/application.h
@@ -250,6 +250,7 @@ public:
void show_me(bool full_screen);
void hide_me();
void set_hotkeys(const std::string& hotkeys);
+ void set_default_hotkeys(void);
int get_controller_menu_item_id(int32_t opaque_conn_ref, uint32_t msg_id);
void set_menu(Menu* menu);
void delete_menu();