<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>496340</bug_id>
          
          <creation_ts>2024-11-16 12:28:51 +0000</creation_ts>
          <short_desc>Missing Context Menu on edit advanced search</short_desc>
          <delta_ts>2024-11-18 20:16:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Searches-Advanced</component>
          <version>8.5.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pedro Neves">pedro_aneves</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>metzpinguin</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>8.6.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2374915</commentid>
    <comment_count>0</comment_count>
    <who name="Pedro Neves">pedro_aneves</who>
    <bug_when>2024-11-16 12:28:51 +0000</bug_when>
    <thetext>***



***

SUMMARY

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

STEPS TO REPRODUCE
1. Go to &quot;Search&quot;
2. Select &quot;New Advanced Search...&quot; or &quot;Edit Current Search...&quot;
3. On the &quot;Album&quot; area, click on the &quot;Albums&quot; 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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2374920</commentid>
    <comment_count>1</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2024-11-16 12:40:42 +0000</bug_when>
    <thetext>I don&apos;t understand the bug report. Only saved advanced searches have an entry for editing, saved quick text searches don&apos;t.
But you don&apos;t seem to see a context menu in the album tree view either? Are you using Wayland? If the problem isn&apos;t present in the AppImage, it might not be a digiKam problem.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2374976</commentid>
    <comment_count>2</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2024-11-16 18:29:08 +0000</bug_when>
    <thetext>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&apos;t.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2374995</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2024-11-16 22:34:34 +0000</bug_when>
    <thetext>Git commit 4361eff27d793e77d0c83e2477405f8861cfa2ba by Maik Qualmann.
Committed on 16/11/2024 at 22:31.
Pushed by mqualmann into branch &apos;master&apos;.

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2375383</commentid>
    <comment_count>4</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2024-11-18 20:16:06 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>