diff --git a/gajim/data/gui/preferences_window.ui b/gajim/data/gui/preferences_window.ui
index 46818c3a2878e69aaabe7c381f29b677fcd1547a..5975d1259215d4479fbed5dc2ed2a74882e0bca1 100644
--- a/gajim/data/gui/preferences_window.ui
+++ b/gajim/data/gui/preferences_window.ui
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.36.0 -->
+<!-- Generated with glade 3.22.2 -->
 <interface>
   <requires lib="gtk+" version="3.22"/>
   <object class="GtkAdjustment" id="adjustment_status_auto_away">
@@ -398,6 +398,24 @@
                     <property name="margin_top">6</property>
                     <property name="orientation">vertical</property>
                     <property name="spacing">6</property>
+                    <child>
+                      <object class="GtkCheckButton" id="merge_accounts_checkbutton">
+                        <property name="label" translatable="yes">Me_rge accounts</property>
+                        <property name="visible">True</property>
+                        <property name="can_focus">True</property>
+                        <property name="receives_default">False</property>
+                        <property name="tooltip_text" translatable="yes">Displays all your accounts merged into a single one</property>
+                        <property name="halign">start</property>
+                        <property name="use_underline">True</property>
+                        <property name="draw_indicator">True</property>
+                        <signal name="toggled" handler="on_merge_accounts_toggled" swapped="no"/>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">False</property>
+                        <property name="position">0</property>
+                      </packing>
+                    </child>
                     <child>
                       <object class="GtkCheckButton" id="show_avatars_in_roster_checkbutton">
                         <property name="label" translatable="yes">Show a_vatars of contacts in contact list</property>
@@ -413,7 +431,7 @@
                       <packing>
                         <property name="expand">False</property>
                         <property name="fill">False</property>
-                        <property name="position">0</property>
+                        <property name="position">1</property>
                       </packing>
                     </child>
                     <child>
@@ -431,7 +449,7 @@
                       <packing>
                         <property name="expand">False</property>
                         <property name="fill">False</property>
-                        <property name="position">1</property>
+                        <property name="position">2</property>
                       </packing>
                     </child>
                     <child>
@@ -449,7 +467,7 @@
                       <packing>
                         <property name="expand">False</property>
                         <property name="fill">False</property>
-                        <property name="position">2</property>
+                        <property name="position">3</property>
                       </packing>
                     </child>
                     <child>
@@ -507,7 +525,7 @@
                       <packing>
                         <property name="expand">True</property>
                         <property name="fill">True</property>
-                        <property name="position">3</property>
+                        <property name="position">4</property>
                       </packing>
                     </child>
                   </object>
diff --git a/gajim/gtk/preferences.py b/gajim/gtk/preferences.py
index 539c5637554e5b7077233796f5330ded5d8e54b5..bb5e6fd7125cf5bf80934a210c1919b7ff566797 100644
--- a/gajim/gtk/preferences.py
+++ b/gajim/gtk/preferences.py
@@ -100,6 +100,10 @@ def __init__(self):
             self._ui.tabs_placement.set_active(3)
 
         ## Contact List Appearance
+        # Merge accounts
+        st = app.config.get('mergeaccounts')
+        self._ui.merge_accounts_checkbutton.set_active(st)
+
         # Display avatars in roster
         st = app.config.get('show_avatars_in_roster')
         self._ui.show_avatars_in_roster_checkbutton.set_active(st)
@@ -590,6 +594,10 @@ def on_tab_placement_changed(self, widget):
         else: # right
             app.config.set('tabs_position', 'right')
 
+    def on_merge_accounts_toggled(self, widget):
+        self.on_checkbutton_toggled(widget, 'mergeaccounts')
+        app.app.activate_action('merge')
+
     def on_show_avatars_in_roster_checkbutton_toggled(self, widget):
         self.on_checkbutton_toggled(widget, 'show_avatars_in_roster')
         app.interface.roster.setup_and_draw_roster()