You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desktop version: (please complete the following information):
OS: Linux
Version 6.12.12 (Debian unstable)
Compiler gcc 14.2.0
Describe the bug
When the "Download by Name" dialog is activated to import a molecule, a second empty window pops up 5 seconds after the "Download by Name" window. It looks like an empty message window, having no input fields. Sometimes it pops up directly over the dialog window, which gets confusing since it feels like it must be the dialog box, yet has no input (if you move it aside you find the actual dialog box underneath).
To Reproduce
Steps to reproduce the behavior:
Go to 'File'→'Import'
Click on 'Download by Name...'
See dialog box (maybe)
See erroneous empty box
Expected behavior
The second empty window should not appear when "Download by Name" is activated.
Screenshots
Additional context
I suspect this second empty box is a bug in the showDialog() function in networkdatabases.cpp.
I think it might be the progessDialog created at
It seem like the progressDialog is created and pops up before it is needed (i.e. before a molecule has even been entered in the dialog box).
Perhaps the progressDialog should not be created before input has been entered?
Or if it does need to be created at l.70, then perhaps it needs to be created with visible: false . For QProgressDialog I think this means creating with minimumDuration=0 . The default is 4000 ms, which would explain why it pops up after 4 seconds.
The text was updated successfully, but these errors were encountered:
Avogadro version:
Desktop version: (please complete the following information):
Describe the bug
When the "Download by Name" dialog is activated to import a molecule, a second empty window pops up 5 seconds after the "Download by Name" window. It looks like an empty message window, having no input fields. Sometimes it pops up directly over the dialog window, which gets confusing since it feels like it must be the dialog box, yet has no input (if you move it aside you find the actual dialog box underneath).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The second empty window should not appear when "Download by Name" is activated.
Screenshots
Additional context
I suspect this second empty box is a bug in the
showDialog()
function in networkdatabases.cpp.I think it might be the progessDialog created at
avogadrolibs/avogadro/qtplugins/networkdatabases/networkdatabases.cpp
Line 70 in 8dca2da
It seem like the progressDialog is created and pops up before it is needed (i.e. before a molecule has even been entered in the dialog box).
Perhaps the progressDialog should not be created before input has been entered?
Or if it does need to be created at l.70, then perhaps it needs to be created with
visible: false
. For QProgressDialog I think this means creating withminimumDuration=0
. The default is 4000 ms, which would explain why it pops up after 4 seconds.The text was updated successfully, but these errors were encountered: