Commit 91611193 authored by Matthias Clasen's avatar Matthias Clasen

No popup menu on the button

parent 9b813224
......@@ -451,7 +451,8 @@ swatch_button_press (GtkWidget *widget,
gtk_widget_grab_focus (GTK_WIDGET (swatch));
if (gdk_event_triggers_context_menu ((GdkEvent *) event))
if (gdk_event_triggers_context_menu ((GdkEvent *) event) &&
swatch->priv->has_color)
{
do_popup (widget, event);
return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment