Bug 496340 - Missing Context Menu on edit advanced search
Summary: Missing Context Menu on edit advanced search
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Advanced (other bugs)
Version First Reported In: 8.5.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-16 12:28 UTC by Pedro Neves
Modified: 2024-11-18 20:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Neves 2024-11-16 12:28:51 UTC
***



***

SUMMARY

When I try do create/edit an advanced search, if I click on "Album --- Search albums located in..." I'm missing the context menu (i.e., I cannot select/deselect all children albums, etc.).-

STEPS TO REPRODUCE
1. Go to "Search"
2. Select "New Advanced Search..." or "Edit Current Search..."
3. On the "Album" area, click on the "Albums" and then of the Albums tree, right-click to select an album

OBSERVED RESULT

No context menu is shown

EXPECTED RESULT

There should be a context menu allowing you to select/deselect children albums, etc.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)


Linux/KDE Plasma: 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION

Kernel Version: 6.11.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 22 × Intel® Core™ Ultra 7 155H
Memory: 30.8 GiB of RAM
Graphics Processor: Mesa Intel® Arc


The problem is  not present on the latest Appimage and it was present on the Digikam version 8.4.x (on Arch Linux)
Comment 1 Maik Qualmann 2024-11-16 12:40:42 UTC
I don't understand the bug report. Only saved advanced searches have an entry for editing, saved quick text searches don't.
But you don't seem to see a context menu in the album tree view either? Are you using Wayland? If the problem isn't present in the AppImage, it might not be a digiKam problem.

Maik
Comment 2 Maik Qualmann 2024-11-16 18:29:08 UTC
Ok, strange, now I understand it, the album selector in the advanced search itself. Yes, in the AppImage it has a context menu, in my native Qt6 digiKam version it doesn't.

Maik
Comment 3 Maik Qualmann 2024-11-16 22:34:34 UTC
Git commit 4361eff27d793e77d0c83e2477405f8861cfa2ba by Maik Qualmann.
Committed on 16/11/2024 at 22:31.
Pushed by mqualmann into branch 'master'.

workaround for a missing context menu event in Qt-6.8.0
This is a strange behavior of the QTreeView in a QComboBox starting
with Qt-6.8.0, we do not receive a context menu event, and we
cannot create a custom context menu via signal/slot.

M  +27   -1    core/libs/widgets/combo/comboboxutilities.cpp

https://invent.kde.org/graphics/digikam/-/commit/4361eff27d793e77d0c83e2477405f8861cfa2ba
Comment 4 Maik Qualmann 2024-11-18 20:16:06 UTC
A context menu is now available again with Qt-6.8.0, the reason it does not appear in our bundles is because we are still using Qt-6.7.x there.
I see 2 reports in the Qt bug tracker üossible related to this problem, it is supposed to be a regression in Qt-6.8.0 and is fixed in Qt-6.8.1. I will test it when I have such a Qt version available.

Maik