From 2e3e1fb6f7a74071f97b4cc0e4ddf40d9dcf64bc Mon Sep 17 00:00:00 2001 From: Baptiste Gelez Date: Sat, 11 May 2019 15:15:35 +0100 Subject: [PATCH] Fix a bug when trying to go to far in the history with keyboard shortcuts --- fractal-gtk/src/actions/global.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fractal-gtk/src/actions/global.rs b/fractal-gtk/src/actions/global.rs index f3c27afb..69d6cc19 100644 --- a/fractal-gtk/src/actions/global.rs +++ b/fractal-gtk/src/actions/global.rs @@ -189,16 +189,12 @@ pub fn new(app: >k::Application, op: &Arc>) { } })); older_messages.connect_activate(clone!(op => move |_, _| { - let mut op = op.lock().unwrap(); - if let Some(ref mut hist) = op.history { - // println!("page up"); + if let Some(ref mut hist) = op.lock().unwrap().history { hist.page_up(); } })); newer_messages.connect_activate(clone!(op => move |_, _| { - let mut op = op.lock().unwrap(); - if let Some(ref mut hist) = op.history { - // println!("page down"); + if let Some(ref mut hist) = op.lock().unwrap().history { hist.page_down(); } }));