From 31b46eb8f32863dfdfa0921b39792cd651fc9556 Mon Sep 17 00:00:00 2001
From: MialLewis <95620982+MialLewis@users.noreply.github.com>
Date: Fri, 17 Jun 2022 14:00:54 +0100
Subject: [PATCH] stop auto refocus on waterfall edit box #REF793

---
 mslice/plotting/plot_window/plot_window.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mslice/plotting/plot_window/plot_window.py b/mslice/plotting/plot_window/plot_window.py
index 9f0b36874..963bba879 100644
--- a/mslice/plotting/plot_window/plot_window.py
+++ b/mslice/plotting/plot_window/plot_window.py
@@ -160,6 +160,7 @@ def add_toolbar_actions(self, toolbar):
 
     def add_waterfall_edit(self, parent):
         self.waterfall_x_lbl = QtWidgets.QLabel("x:", parent)
+        self.waterfall_x_lbl.setFocusPolicy(QtCore.Qt.TabFocus)
         self.waterfall_y_lbl = QtWidgets.QLabel("y:", parent)
         self.waterfall_x_edt = QtWidgets.QLineEdit("0", parent)
         self.waterfall_y_edt = QtWidgets.QLineEdit("0", parent)