Only delete the theme if the user pressed OK (bug #578694)
2009-04-11 Benjamin Berg <benjamin@sipsolutions.net> * theme-util.c: (theme_delete): Only delete the theme if the user pressed OK (bug #578694) svn path=/trunk/; revision=9408
This commit is contained in:
parent
91ab19351c
commit
346c3022b6
2 changed files with 6 additions and 1 deletions
|
@ -76,7 +76,7 @@ theme_delete (const gchar *name, ThemeType type)
|
|||
gtk_dialog_add_button (dialog, GTK_STOCK_DELETE, GTK_RESPONSE_ACCEPT);
|
||||
response = gtk_dialog_run (dialog);
|
||||
gtk_widget_destroy (GTK_WIDGET (dialog));
|
||||
if (response == GTK_RESPONSE_CANCEL)
|
||||
if (response != GTK_RESPONSE_ACCEPT)
|
||||
return FALSE;
|
||||
|
||||
/* Most theme types are put into separate subdirectories. For those
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue