LocationDialog.cpp   LocationDialog.cpp 
skipping to change at line 134 skipping to change at line 134
void LocationDialog::updateFromProgram(const StelLocation& currentLocation) void LocationDialog::updateFromProgram(const StelLocation& currentLocation)
{ {
if (!dialog->isVisible()) if (!dialog->isVisible())
return; return;
StelCore* stelCore = StelApp::getInstance().getCore(); StelCore* stelCore = StelApp::getInstance().getCore();
//const StelLocation& currentLocation = stelCore->getCurrentLocation (); //const StelLocation& currentLocation = stelCore->getCurrentLocation ();
// Hack to avoid the coord spinbox receiving the focus and triggerin g // Hack to avoid the coord spinbox receiving the focus and triggerin g
// "new location" editing mode. // "new location" editing mode.
ui->citySearchLineEdit->setFocus(); // Disable hack below because it change behaviour of spinboxes and a
dded difficulties of changes for this spinboxes --AW
// ui->citySearchLineEdit->setFocus();
isEditingNew = false; isEditingNew = false;
// Check that the use as default check box needs to be updated // Check that the use as default check box needs to be updated
// Move to setFieldsFromLocation()? --BM? // Move to setFieldsFromLocation()? --BM?
const bool b = currentLocation.getID() == stelCore->getDefaultLocati onID(); const bool b = currentLocation.getID() == stelCore->getDefaultLocati onID();
updateDefaultLocationControls(b); updateDefaultLocationControls(b);
const QString& key1 = currentLocation.getID(); const QString& key1 = currentLocation.getID();
const QString& key2 = locationFromFields().getID(); const QString& key2 = locationFromFields().getID();
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/