Bug 455699 - Importing folders with subdirectories creates albums, but they're missing in album view
Summary: Importing folders with subdirectories creates albums, but they're missing in ...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-MainView (other bugs)
Version First Reported In: 7.6.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-21 07:12 UTC by nyanpasu64
Modified: 2022-06-21 10:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 7.7.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nyanpasu64 2022-06-21 07:12:56 UTC
SUMMARY
When I import a folder with subdirectories (each subdirectory creates a sub-album), the automatically created sub-albums are not visible in the albums tree sidebar until I refresh it.

Possibly the same bug: When I click , and pick a folder with subdirectories, the automatically created subdirectories (and their images) don't show up in the Albums tree view, until I go to the tree view, right-click the folder's album and click Refresh.

STEPS TO REPRODUCE
1. Open digiKam, click menu Import -> Add Folders, and pick a folder.
2. Create a sub-album under the root digikam one, and import there. (Not sure if required or not.)
3. Look for the newly imported pictures in the albums view.

OBSERVED RESULT
The newly created sub-albums are not visible in the left albums sidebar. If menu View -> Include Album Sub-Tree is unchecked, the new photos cannot be found at all.

EXPECTED RESULT
The left albums sidebar refreshes when new albums are created.

SOFTWARE/OS VERSIONS
digiKam Version 7.6.0
Operating System: Arch Linux
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
Kernel Version: 5.18.5-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GT 730/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B550M DS3H

ADDITIONAL INFORMATION
Unsure if Bug 397297 refers to the same bug, or newly created albums in the *main* window not showing up in the *import dialog*.
Comment 1 Maik Qualmann 2022-06-21 07:29:01 UTC
This is already fixed for digiKam-8.0.0 due to improvements in post processing after import.

Let's see if we can still make a workaround patch for digiKam-7.7.0.

Maik
Comment 2 Maik Qualmann 2022-06-21 10:45:12 UTC
Git commit 203143e0d742d1c676758cc16ba899d35488659d by Maik Qualmann.
Committed on 21/06/2022 at 10:44.
Pushed by mqualmann into branch 'qt5-maintenance'.

restore item scanning behavior in the Import Tool
FIXED-IN: 7.7.0

M  +2    -1    NEWS
M  +7    -3    core/utilities/import/main/importui.cpp

https://invent.kde.org/graphics/digikam/commit/203143e0d742d1c676758cc16ba899d35488659d