Newly created location cannot be set as default

Bug #889931 reported by Khalid AlAjaji
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Low
Bogdan Marinov

Bug Description

0.11.1
To recreate:
- Create a new location by editing the lat/long and altitude values
- Give it a name
- add to list
(it shows on the list)
- check the "use as default" box and the name/city field will change to "New location" along with the name in the status bar.

My workaround
after adding to the list
exit and restart stellarium
- from location window search and select the newly created location
- set as default

This is very similar to https://bugs.launchpad.net/stellarium/+bug/881613

Related branches

Revision history for this message
Bogdan Marinov (daggerstab) wrote :

I'll check it out tomorrow, that is, later this morning. :)

Changed in stellarium:
assignee: nobody → Bogdan Marinov (daggerstab)
Revision history for this message
Bogdan Marinov (daggerstab) wrote :

Confirmed. An interesting point - on my computer, in Ubuntu, adding a new location may cause Stellarium to hand for several seconds...

Changed in stellarium:
importance: Undecided → Low
milestone: none → 0.11.2
status: New → Confirmed
Changed in stellarium:
milestone: 0.11.2 → 0.11.3
Revision history for this message
Bogdan Marinov (daggerstab) wrote :

I think I got this one: LocationDialog::addCurrentLocationToList() calls listItemActivated(), which disables the "add location" button. The focus is moved to the next control in the tab order, which is the latitude spin box. If the user clicks on the "set as default" check box, the spin box loses focus, causing it to think that the value has been changed, as discussed in bug #881613. This in turn causes the name to be changed to "New Location".

I've fixed the bug by setting the focus to the location search box when the "add location" button is clicked:
http://bazaar.launchpad.net/~stellarium/stellarium/0.11/revision/4929

Changed in stellarium:
milestone: 0.11.3 → 0.11.2
status: Confirmed → Fix Committed
Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.