Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot delete last atom by selection #683

Closed
mquevill opened this issue Jul 16, 2021 · 1 comment · Fixed by #691
Closed

Cannot delete last atom by selection #683

mquevill opened this issue Jul 16, 2021 · 1 comment · Fixed by #691

Comments

@mquevill
Copy link
Contributor

Avogadro version: 1.94.0-21-g0942bdb

  • Avogadrolibs: 1.94.0-103-g91db7e7
  • Qt: 5.12.8

Desktop version:

  • OS & Version: Linux Mint 20.2 (based on Ubuntu 20.04)
  • Compiler: gcc 9.3.0

Describe the bug
Selecting atoms and deleting (by pressing "delete"), works much better due to #672 and #677. However, it still leaves the last atom if it's the only one. When deleting part of a molecule, it works as expected.

To Reproduce
Select all atoms and tap "delete". One atom will be remaining and must be deleted by unselecting and pressing "delete". Even if the setup starts with only one atom, it can never be deleted by this method.

Expected behavior
All selected atoms would be deleted.

Screenshots
All atoms selected:
image
After pressing "delete":
image

@MSoegtropIMC
Copy link

I can confirm this - it seems to be the first atom (#1) btw. which cannot be deleted. Even when there are multiple atoms, one cannot delete atom #1 by selection. One can delete it with edit / right click, though.

ghutchis added a commit to ghutchis/avogadrolibs that referenced this issue Jul 22, 2021
Signed-off-by: Geoff Hutchison <geoff.hutchison@gmail.com>
@ghutchis ghutchis linked a pull request Jul 22, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants