[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 02/03: Fix crash when last search action is deleted.

noreply at xfce.org noreply at xfce.org
Sat Apr 7 11:36:35 CEST 2018


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

g   o   t   t   c   o   d   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 6499bc855b89a3143cd2100fbf382541a3a21802
Author: Graeme Gott <graeme at gottcode.org>
Date:   Fri Apr 6 17:45:23 2018 -0400

    Fix crash when last search action is deleted.
---
 panel-plugin/configuration-dialog.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/configuration-dialog.cpp b/panel-plugin/configuration-dialog.cpp
index 37d68bd..fea7b70 100644
--- a/panel-plugin/configuration-dialog.cpp
+++ b/panel-plugin/configuration-dialog.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013, 2015, 2016, 2017 Graeme Gott <graeme at gottcode.org>
+ * Copyright (C) 2013, 2015, 2016, 2017, 2018 Graeme Gott <graeme at gottcode.org>
  *
  * This library is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -327,6 +327,7 @@ SearchAction* ConfigurationDialog::get_selected_action(GtkTreeIter* iter) const
 void ConfigurationDialog::action_selected(GtkTreeView*)
 {
 	SearchAction* action = get_selected_action();
+	if (action)
 	{
 		gtk_entry_set_text(GTK_ENTRY(m_action_name), action->get_name());
 		gtk_entry_set_text(GTK_ENTRY(m_action_pattern), action->get_pattern());

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list