diff options
author | raveit65 <[email protected]> | 2017-01-08 20:25:07 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-02-17 12:28:22 +0100 |
commit | fae8db88c7704a942cf5973a355af3895b2af03f (patch) | |
tree | 7c7f3e0853a4e394e0490c54388861440baddcf7 /font-viewer | |
parent | 18b8eb2fc6785183068eaaa8d6fa1dda86793bfe (diff) | |
download | mate-control-center-fae8db88c7704a942cf5973a355af3895b2af03f.tar.bz2 mate-control-center-fae8db88c7704a942cf5973a355af3895b2af03f.tar.xz |
Fontviewer: font-view, return early if we have a model already
Diffstat (limited to 'font-viewer')
-rw-r--r-- | font-viewer/font-view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c index c82126da..df71df75 100644 --- a/font-viewer/font-view.c +++ b/font-viewer/font-view.c @@ -472,6 +472,9 @@ info_button_clicked_cb (GtkButton *button, static void font_view_ensure_model (FontViewApplication *self) { + if (self->model != NULL) + return; + self->model = font_view_model_new (); g_signal_connect (self->model, "config-changed", G_CALLBACK (font_model_config_changed_cb), self); |