Ignore:
Timestamp:
2006-09-09T00:18:24+02:00 (19 years ago)
Author:
imi
Message:
  • added feature "Save" (old save is now "Save as")
  • added feature to rename a layer
  • fixed bug that geo-images pop up more than once
  • fixed bug where you could try to change properties for 0 objects
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java

    r129 r138  
    9696                String key = data.getValueAt(row, 0).toString();
    9797                Collection<OsmPrimitive> sel = Main.ds.getSelected();
     98                if (sel.isEmpty()) {
     99                        JOptionPane.showMessageDialog(Main.parent, tr("Please select the objects you want to change properties for."));
     100                        return;
     101                }
    98102                String msg = "<html>"+trn("This will change {0} object.", "This will change {0} objects.", sel.size(), sel.size())+"<br><br> "+tr("Please select a new value for \"{0}\".<br>(Empty string deletes the key.)", key)+"</html>";
    99103                final JComboBox combo = (JComboBox)data.getValueAt(row, 1);
     
    144148        void add() {
    145149                Collection<OsmPrimitive> sel = Main.ds.getSelected();
     150                if (sel.isEmpty()) {
     151                        JOptionPane.showMessageDialog(Main.parent, tr("Please select objects for which you want to change properties."));
     152                        return;
     153                }
    146154
    147155                JPanel p = new JPanel(new BorderLayout());
Note: See TracChangeset for help on using the changeset viewer.