summary refs log tree commit diff stats
path: root/commands/msg/move.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/move.go')
-rw-r--r--commands/msg/move.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/msg/move.go b/commands/msg/move.go
index 8b19a10..45fa635 100644
--- a/commands/msg/move.go
+++ b/commands/msg/move.go
@@ -49,11 +49,14 @@ func (_ Move) Execute(aerc *widgets.Aerc, args []string) error {
 	if acct == nil {
 		return errors.New("No account selected")
 	}
+	store := widget.Store()
+	if store == nil {
+		return errors.New("Cannot perform action. Messages still loading")
+	}
 	msg, err := widget.SelectedMessage()
 	if err != nil {
 		return err
 	}
-	store := widget.Store()
 	_, isMsgView := widget.(*widgets.MessageViewer)
 	if isMsgView {
 		aerc.RemoveTab(widget)