In all the apps I develop, I store tha last used directory in application settings (QSettings, i.e. the Slicer.ini file). It would be quite easy to add this to the DICOM import.
It could be that this directory shortcut available in the Import DICOM dialog box is handled by Qt itself.
On Linux, my Slicer startup script edits $HOME/.config/QtProject.conf to add a few directories to the shortcut key. Then the above mentioned dialog box shows the edited shortcuts.
But there’s a caveat. If just after starting Slicer, the Add data/Choose file(s) to add dialog box is raised, the shortcuts in that configuration file get overwritten to $HOME.
The workaround is good enough for me, your’s would be good enough for you. A general solution would be nice indeed, I have no idea if it’s Qt or application related.
@pieper What do you mean exactly? We already start navigating to select a new database from the location of the current one. Do you suggest opening a new dialog offering the last N database paths?
We just did the “saving the last imported DICOM directory” part, but this request needs clarification before we issue a PR. Thanks!
Hi @cpinter - What I often do is create a ‘dicom database per project’. For example, I get some data for multiple patients for research or I download a collection from IDC. Then I’ll want to switch Slicer between databases to as I work on various projects. Currently I use the directory browser to pick the dicom database folder for the project, but I need to remember and find the database directory manually. It would be great if there were a list of recent directories stored in the settings and available in a pull aside menu of the dicom module to simplify this workflow.