From 2bc1dbd4a6f4d059f6e2599c259b06d6cfabf022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 23 Jun 2014 11:43:23 +0200 Subject: [PATCH] [klipper] Reset top is user selected when clearing the history An empty history cannot have a user selected top item. --- klipper/history.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/klipper/history.cpp b/klipper/history.cpp index cc2298cd4..24e2ef4cf 100644 --- a/klipper/history.cpp +++ b/klipper/history.cpp @@ -126,6 +126,7 @@ void History::slotClear() { qDeleteAll(m_items); m_items.clear(); m_top = 0L; + m_topIsUserSelected = false; emit changed(); }