﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
13516	Layers dialog buttons remains enabled even if no layer is selected	Don-vip	team	"==== What steps will reproduce the problem?
1. Create two empty data layers (Ctrl-N twice)
2. Delete the first one
3. Note that the second layer is not selected, but the buttons of layers dialog (move up, delete, etc.) remain enabled and inoperant (as no layer is selected)

==== What is the expected result?
1. buttons should all be disabled if no layer is selected
2. second layer should become selected when the first one is deleted

[[Image(bug.PNG)]]

{{{
Build-Date:2016-09-02 23:21:42
Revision:10932
Is-Local-Build:true

Identification: JOSM/1.5 (10932 SVN en) Windows 10 64-Bit
Memory Usage: 796 MB / 3634 MB (547 MB allocated, but free)
Java version: 1.8.0_102-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080, \Display1 1920x1080, \Display2 1280x1024, 
Maximum Screen Size: 1920x1080
VM arguments: [-Dfile.encoding=UTF-8]
Program arguments: [--debug]
Dataset consistency test: No problems found

Plugins:
+ apache-commons (32699)
+ ejml (32680)
+ geotools (32813)
+ jts (32699)
+ opendata (32898)
+ pbf (32865)
+ pointInfo (32870)
+ utilsplugin2 (32815)

Map paint styles:
+ %UserProfile%\Desktop\test.mapcss

Last errors/warnings:
- W: Failed to load Mappaint styles from '%UserProfile%\Desktop\test.mapcss'. Exception was: java.io.FileNotFoundException: %UserProfile%\Desktop\test.mapcss (Le fichier spécifié est introuvable)
- E: java.io.FileNotFoundException: %UserProfile%\Desktop\test.mapcss (Le fichier spécifié est introuvable)
- W: Initializing map style %UserProfile%\Desktop\test.mapcss completed in 97 ms (1 errors, 0 warnings)
- E: <josm.pref>\plugins\opendata\resources\org\openstreetmap\josm\plugins\opendata\modules\fr\datagouvfr\datasets\agriculture\RegistreParcellaire.mapcss (Le chemin d’accès spécifié est introuvable)
}}}
"	defect	closed	normal	16.10	Core		fixed	template_report gsoc-core regression layer	michael2402
