aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2008-09-06 17:33:04 +0000
committerSimon Tatham <anakin@pobox.com>2008-09-06 17:33:04 +0000
commitca20d86a067e565b3c2cb5110255f179ed78a3d8 (patch)
tree9d8a73619b2dedd07da87d315aea54826d0eb690
parentf38b711c73174786b1dbf8878fb0cb132a89794d (diff)
downloadpuzzles-ca20d86a067e565b3c2cb5110255f179ed78a3d8.zip
puzzles-ca20d86a067e565b3c2cb5110255f179ed78a3d8.tar.gz
puzzles-ca20d86a067e565b3c2cb5110255f179ed78a3d8.tar.bz2
puzzles-ca20d86a067e565b3c2cb5110255f179ed78a3d8.tar.xz
Don't call changed_preset() until after we've initialised
fe->copy_menu_item. [originally from svn r8163]
-rw-r--r--gtk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk.c b/gtk.c
index 94e6975..aa410ae 100644
--- a/gtk.c
+++ b/gtk.c
@@ -1689,7 +1689,6 @@ static frontend *new_window(char *arg, int argtype, char **error)
} else
fe->preset_custom_bullet = NULL;
- changed_preset(fe);
} else {
fe->npresets = 0;
fe->preset_bullets = NULL;
@@ -1745,6 +1744,8 @@ static frontend *new_window(char *arg, int argtype, char **error)
GTK_SIGNAL_FUNC(menu_about_event), fe);
gtk_widget_show(menuitem);
+ changed_preset(fe);
+
{
int i, ncolours;
float *colours;