aboutsummaryrefslogtreecommitdiff
path: root/gtk/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/main.c b/gtk/main.c
index c941896..eafc9b3 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -433,9 +433,11 @@ static gboolean key_press_cb(GtkWidget *w,
}
break;
case GDK_KEY_F7:
- g.sound_paused ^= 1;
- g.work.paused = g.sound_paused;
- g.ss->pause(g.ss, g.sound_paused, 0);
+ if (g.ss) {
+ g.sound_paused ^= 1;
+ g.work.paused = g.sound_paused;
+ g.ss->pause(g.ss, g.sound_paused, 0);
+ }
break;
case GDK_KEY_F11:
if (shift) {