diff options
author | Alexander V. Wolf <alex.v.wolf@gmail.com> | 2022-03-14 22:26:18 +0700 |
---|---|---|
committer | Alexander V. Wolf <alex.v.wolf@gmail.com> | 2022-03-14 22:26:40 +0700 |
commit | 5b2bee8ca7c5c480eeb75f4fba06d23b21d8de3a (patch) | |
tree | fc417bde804523a5f3e2e61f4cdceefaa0aadb18 | |
parent | 2b89bcc3acfa2d9049b8ccf36eb7eabc3d48a46c (diff) |
Fixed potential selection bug in AstroCalc/Positions tool
-rw-r--r-- | src/gui/AstroCalcDialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/AstroCalcDialog.cpp b/src/gui/AstroCalcDialog.cpp index cecce524f7..6d9f70aae3 100644 --- a/src/gui/AstroCalcDialog.cpp +++ b/src/gui/AstroCalcDialog.cpp @@ -1788,6 +1788,8 @@ void AstroCalcDialog::selectCurrentHECPosition(const QModelIndex& modelIndex) { // Find the object QString nameI18n = modelIndex.sibling(modelIndex.row(), HECColumnName).data().toString(); + if (nameI18n==core->getCurrentPlanet()->getNameI18n()) + return; bool found = (objectMgr->findAndSelectI18n(nameI18n) || objectMgr->findAndSelect(nameI18n)); if (!found) |