Index: trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java	(revision 16112)
+++ trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java	(revision 16113)
@@ -976,4 +976,12 @@
     }
 
+    /**
+     * Clear button actions. Should be used when recreating the layout with sidebuttons, and the previous sidebuttons are no longer desired.
+     * @since 16113
+     */
+    public void clearButtonActions() {
+        buttonActions.clear();
+    }
+
     @Override
     public void eventDispatched(AWTEvent event) {
