From 5e1e28076f4c6a9245c770d5f3281f930068cc86 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Wed, 28 May 2025 05:53:46 +0300
Subject: [PATCH 16/16] Qt: Drop sc_orig from class fc_sc_button

See RM #1468

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 client/gui-qt/shortcuts.cpp | 3 ++-
 client/gui-qt/shortcuts.h   | 3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/client/gui-qt/shortcuts.cpp b/client/gui-qt/shortcuts.cpp
index 4ac1540a01..bd85f61ae7 100644
--- a/client/gui-qt/shortcuts.cpp
+++ b/client/gui-qt/shortcuts.cpp
@@ -526,7 +526,8 @@ fc_sc_button::fc_sc_button(): QPushButton()
 **************************************************************************/
 fc_sc_button::fc_sc_button(fc_shortcut *s): QPushButton()
 {
-  sc_orig = s;
+  fc_shortcut *sc_orig = s;
+
   sc = new fc_shortcut;
   sc->id = sc_orig->id;
   sc->key = sc_orig->key;
diff --git a/client/gui-qt/shortcuts.h b/client/gui-qt/shortcuts.h
index 1c1728f4ce..95ceedb625 100644
--- a/client/gui-qt/shortcuts.h
+++ b/client/gui-qt/shortcuts.h
@@ -177,7 +177,6 @@ public:
   fc_sc_button();
   fc_sc_button(fc_shortcut *s);
   fc_shortcut *sc;
-  fc_shortcut *sc_orig;
   void show_info(QString str);
 private slots:
   void popup_error();
@@ -204,4 +203,4 @@ private slots:
   void edit_shortcut();
 };
 
-#endif /* FC__SHORTCUSDLG_H */
+#endif // FC__SHORTCUTSDLG_H
-- 
2.47.2

