keyboard: Don't create shortcuts editor twice

We are accidentally creating two editors, leaking the first instance ...

https://bugzilla.gnome.org/show_bug.cgi?id=784391
This commit is contained in:
Florian Müllner 2017-06-22 17:21:19 +02:00 committed by Georges Basile Stavracas Neto
parent eed74317c4
commit 84d527645b

View file

@ -718,9 +718,6 @@ cc_keyboard_panel_init (CcKeyboardPanel *self)
/* Use a sizegroup to make the accelerator labels the same width */
self->accelerator_sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
/* Shortcut editor dialog */
self->shortcut_editor = cc_keyboard_shortcut_editor_new (self->manager);
g_signal_connect_swapped (self->manager,
"shortcut-added",
G_CALLBACK (add_item),