[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 299/473: Fix segfault when clicking on subcategory.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:57:49 CET 2015


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

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit c8b307c18f9074f843df608f193c0e3ec3f1f09b
Author: Graeme Gott <graeme at gottcode.org>
Date:   Fri Dec 13 11:40:50 2013 -0500

    Fix segfault when clicking on subcategory.
---
 panel-plugin/launcher-view.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel-plugin/launcher-view.cpp b/panel-plugin/launcher-view.cpp
index 11ae54b..f623485 100644
--- a/panel-plugin/launcher-view.cpp
+++ b/panel-plugin/launcher-view.cpp
@@ -297,7 +297,7 @@ gboolean LauncherView::on_button_press_event(GtkWidget*, GdkEventButton* event)
 	}
 
 	gtk_tree_model_get(m_model, &iter, LauncherView::COLUMN_LAUNCHER, &m_pressed_launcher, -1);
-	if (m_pressed_launcher->get_type() != Launcher::Type)
+	if (!m_pressed_launcher || (m_pressed_launcher->get_type() != Launcher::Type))
 	{
 		m_pressed_launcher = NULL;
 		m_drag_enabled = false;

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


More information about the Xfce4-commits mailing list