Bug 472220 - Renaming an album leads to an error if digiKam is working on it
Summary: Renaming an album leads to an error if digiKam is working on it
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-TreeView (show other bugs)
Version: 8.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-13 13:25 UTC by Alexandre Belz
Modified: 2023-07-13 15:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen capture (856.37 KB, image/png)
2023-07-13 13:25 UTC, Alexandre Belz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belz 2023-07-13 13:25:10 UTC
Created attachment 160265 [details]
Screen capture

SUMMARY
***
Renaming an album may lead to an error if Digikam is working on it (typically after an import process)
This is related to https://bugs.kde.org/show_bug.cgi?id=412678  but know I think I understand why.
***

STEPS TO REPRODUCE
1. From the album view (left tree) 
2. Choose an album, and refresh it (F5)
2. Do not wait and immediately try to rename the folder/album (Maj+F2).

OBSERVED RESULT
3. An error message appears

EXPECTED RESULT
3. folder/Album should be renamed as desired.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
The error messages seems to appear if the bottom right progress bar is not 100%. If I wait the progress bar to finish, I don't see the error message, and the folder is correctly renamed.
I wonder if Digikam is certainly accessing some files, maybe even writing some sidecar files or database entries. It may be dangerous to rename this folder while a process is running, and this is maybe why digikam rises an error.

I suggest digikam to write a better message, such as "a process is running, please wait before renaming".
Or maybe cue it so that it's done when possible. "a process is running, renaming will be performed asap".