Skip to content
Snippets Groups Projects
Commit b42e304c authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2926] Code cleanup (refactor if statement)

parent 9e1c5bcc
Branches
Tags
No related merge requests found
......@@ -105,15 +105,10 @@ main_window_ask_quit ()
response = gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
if (response == GTK_RESPONSE_YES)
{
return TRUE;
}
else if (response == GTK_RESPONSE_NO)
{
return FALSE;
}
return TRUE;
return (response == GTK_RESPONSE_NO)? FALSE : TRUE ;
}
static gboolean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment