This is an automated email from the git hooks/post-receive script.

bluesabre pushed a 
commit to branch 
master
in repository xfce/xfce4-settings.

commit d5f96a214230a9fd3e0d137cb733f284ba23bfe4
Author: Theo Linkspfeifer <lastonestand...@tutanota.com>
Date:   Tue Mar 10 15:44:32 2020 +0100

    keyboard: Fix crash when editing shortcut (Bug #15958)
    
    Signed-off-by: Sean Davis <smd.seanda...@gmail.com>
---
 dialogs/keyboard-settings/xfce-keyboard-settings.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/dialogs/keyboard-settings/xfce-keyboard-settings.c 
b/dialogs/keyboard-settings/xfce-keyboard-settings.c
index 3b2f430..76169ad 100644
--- a/dialogs/keyboard-settings/xfce-keyboard-settings.c
+++ b/dialogs/keyboard-settings/xfce-keyboard-settings.c
@@ -1159,14 +1159,16 @@ xfce_keyboard_settings_edit_button_clicked 
(XfceKeyboardSettings *settings)
                   test_new_shortcut = (g_strcmp0 (shortcut, new_shortcut) != 
0);
                   if (g_strcmp0 (command, new_command) != 0 || 
(test_new_shortcut) || snotify != new_snotify)
                     {
-                      /* Remove the row because we add new one from the
-                       * shortcut-added signal */
-                      gtk_list_store_remove (GTK_LIST_STORE (model), &iter);
-
                       if (test_new_shortcut)
-                        /* Remove old keyboard shortcut via xfconf */
-                        xfce_shortcuts_provider_reset_shortcut 
(settings->priv->provider,
-                                                                shortcut);
+                        {
+                          /* Remove the row because we add new one from the
+                           * shortcut-added signal */
+                          gtk_list_store_remove (GTK_LIST_STORE (model), 
&iter);
+
+                          /* Remove old keyboard shortcut via xfconf */
+                          xfce_shortcuts_provider_reset_shortcut 
(settings->priv->provider,
+                                                                  shortcut);
+                        }
 
                       /* Save settings */
                       xfce_shortcuts_provider_set_shortcut 
(settings->priv->provider,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to