Commit b42e304c authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2926] Code cleanup (refactor if statement)

parent 9e1c5bcc
...@@ -105,15 +105,10 @@ main_window_ask_quit () ...@@ -105,15 +105,10 @@ main_window_ask_quit ()
response = gtk_dialog_run (GTK_DIALOG (dialog)); response = gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog); gtk_widget_destroy (dialog);
if (response == GTK_RESPONSE_YES)
{ return (response == GTK_RESPONSE_NO)? FALSE : TRUE ;
return TRUE;
}
else if (response == GTK_RESPONSE_NO)
{
return FALSE;
}
return TRUE;
} }
static gboolean static gboolean
......
Supports Markdown
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