summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msglist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index efecf2c..f7398dc 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -129,7 +129,7 @@ func (ml *MessageList) storeUpdate(store *lib.MessageStore) {
 }
 
 func (ml *MessageList) SetStore(store *lib.MessageStore) {
-	if ml.Store() == store {
+	if ml.Store() != store {
 		ml.scroll = 0
 		ml.selected = 0
 	}