@SuppressWarnings("unused")
private void geoBoxChanged() {
int index = geoBox.currentIndex();
geoBox.setCurrentIndex(0);
if (index == 1) {
GeoDialog box = new GeoDialog();
box.setLongitude(currentNote.getAttributes().getLongitude());
box.setLatitude(currentNote.getAttributes().getLatitude());
box.setAltitude(currentNote.getAttributes().getAltitude());
box.exec();
if (!box.okPressed())
return;
double alt = box.getAltitude();
double lat = box.getLatitude();
double lon = box.getLongitude();
if (alt != currentNote.getAttributes().getAltitude() ||
lon != currentNote.getAttributes().getLongitude() ||
lat != currentNote.getAttributes().getLatitude()) {
noteSignal.geoChanged.emit(currentNote.getGuid(), lon, lat, alt);
currentNote.getAttributes().setAltitude(alt);