Index: trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java	(revision 1342)
+++ trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java	(revision 1343)
@@ -198,5 +198,5 @@
             public boolean importData(JComponent comp, Transferable t) {
                 try {
-                    int dropIndex = selectedList.locationToIndex(selectedList.getDropLocation().getDropPoint());
+                    int dropIndex = selectedList.locationToIndex(selectedList.getMousePosition(true));
                     Object[] draggedData = (Object[]) t.getTransferData(ACTION_FLAVOR);
 
@@ -409,5 +409,4 @@
 
     public boolean ok() {
-        StringBuilder b = new StringBuilder();
         Collection<String> t = new LinkedList<String>();
         for (int i = 0; i < selected.size(); ++i) {
@@ -426,5 +425,5 @@
      */
     public Action register(Action action) {
-//        actions.put((String) action.getValue("toolbar"), action);
+        actions.put((String) action.getValue("toolbar"), action);
         return action;
     }
