kasramp/UbuntuIndicatorWeather

Cursor position is lost when entering Longitude and Latitude in Preferences

tigran123 opened this issue · 2 comments

When entering the GPS coordinates for manual location one has to switch between Chrome running Google Maps application and indicator-weather's Preferences dialog. If both are visible simultaneously, then there is no problem, but if they happen to be on different workspaces, then one memorises the first 3-4 digits, then switches to Preferences and enters them. Then switches back to Google Maps and memorises the rest of the digits and switches back to Preferences in order to complete the process of entering the data. But at this step the cursor position is reset to the beginning of the field and so entering the remaining digits causes data corruption, i.e. the completely wrong number is entered.

So, the fix for this bug is simple: don't try to do anything clever with the line edit textbox containing the coordinates. Just accept whatever is entered there and validate it only when the user pressed OK to save the data.

@tigran123 - Thanks for reporting the issue. What distro and what version are you using?

Oh, sorry, I should have said that it was on Ubuntu 16.04.3 LTS.