Unverified Commit 9c8b7dd1 authored by Victor Ananjevsky's avatar Victor Ananjevsky Committed by GitHub

Merge pull request #39 from dshoreman/patch-1

Trim whitespace around `cmd` to fix special `quit ` menuitem
parents 1b6c3e88 2cc5b64e
......@@ -174,7 +174,7 @@ popup_menu_item_activate_cb (GtkWidget * w, gpointer data)
if (cmd)
{
if (g_ascii_strcasecmp (cmd, "quit") == 0)
if (g_ascii_strcasecmp (g_strstrip (cmd), "quit") == 0)
{
exit_code = YAD_RESPONSE_OK;
gtk_main_quit ();
......
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