<?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>441070</bug_id>
          
          <creation_ts>2021-08-17 07:12:23 +0000</creation_ts>
          <short_desc>&quot;Folder is empty&quot; text label consumes mouse events on top of it</short_desc>
          <delta_ts>2024-01-16 12:46:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>dolphin</product>
          <component>view-engine: general</component>
          <version>21.08.0</version>
          <rep_platform>Other</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="nttkde">watisthispoo</reporter>
          <assigned_to name="Dolphin Bug Assignee">dolphin-bugs-null</assigned_to>
          <cc>ad.liu.jin</cc>
    
    <cc>dolphin-bugs-null</cc>
    
    <cc>jpmbatrina01</cc>
    
    <cc>nate</cc>
    
    <cc>omerusta</cc>
          
          <cf_commitlink>https://invent.kde.org/system/dolphin/-/commit/59273a432b7a933864306cf5ab32fb1de1ac445a</cf_commitlink>
          <cf_versionfixedin>24.02</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2053908</commentid>
    <comment_count>0</comment_count>
    <who name="nttkde">watisthispoo</who>
    <bug_when>2021-08-17 07:12:23 +0000</bug_when>
    <thetext>Not sure if this is really a &apos;bug&apos; but maybe unintentional so here&apos;s the report anyways.

When you have opened an empty folder, you can&apos;t right-click on top of the &quot;Folder is empty&quot; text in the middle; the text label eats the mouse events.
If you drag from the label it moves the whole window.
So functionality-wise it&apos;s a bit weirdly separate from rest of the view.

Maybe adding 
m_placeholderLabel-&gt;setAttribute(Qt::WA_TransparentForMouseEvents);
would work?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053941</commentid>
    <comment_count>1</comment_count>
    <who name="Jan Paul Batrina">jpmbatrina01</who>
    <bug_when>2021-08-17 11:25:20 +0000</bug_when>
    <thetext>Thanks for the bug report and fix suggestion!

I can confirm with dolphin built from git master.

I can also confirm that adding m_placeholderLabel-&gt;setAttribute(Qt::WA_TransparentForMouseEvents) in dolphinview.cpp fixes the problem. I don&apos;t have a touch screen for testing, but this fix should also work for touch events since they are sent as mouse events unless Qt::WA_AcceptTouchEvents is set.

If you have the time, please make a merge request at https://invent.kde.org/system/dolphin/-/merge_requests for this fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054007</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-08-17 15:58:44 +0000</bug_when>
    <thetext>Yep, can confirm that that fixes it and is an appropriate fix. Someone please feel free to submit a merge request.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2055372</commentid>
    <comment_count>3</comment_count>
    <who name="Ömer Fadıl USTA">omerusta</who>
    <bug_when>2021-08-23 05:04:52 +0000</bug_when>
    <thetext>Hello , Could you please make a test in these 2 conditions :
1- When creating a new file instead of putting a Russian/crillic name, give a name like abc.txt  and try if it crashes again or not

2- Disable the baloo ( on commandline use 
balooctrl disable ) and wait a few seconds then create your file and try it again

* I know that there is a bug about baloo which causes it crash but it doesnt have to crash whole system ( and btw i will fix it within 1 week )

And also after crash could you share with us the coredumpctl logs ?
( in commandline/konsole 

coredumpctl list

then find the crash then 

coredumpctl dump applicationName ( example : coredumpctl dump /usr/bin/kmix )

Thank you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2055373</commentid>
    <comment_count>4</comment_count>
    <who name="Ömer Fadıl USTA">omerusta</who>
    <bug_when>2021-08-23 05:06:07 +0000</bug_when>
    <thetext>opps ignore my last entry ( i prepared that one for another bug but paste in wrong bug report ) sorry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2280477</commentid>
    <comment_count>5</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-01-15 12:28:55 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/701</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2280738</commentid>
    <comment_count>6</comment_count>
    <who name="Jin Liu">m.liu.jin</who>
    <bug_when>2024-01-16 12:37:49 +0000</bug_when>
    <thetext>Git commit c984badee32f691a787c3dea202ef5ef5446758b by Jin Liu.
Committed on 16/01/2024 at 13:37.
Pushed by genericity into branch &apos;master&apos;.

Fix: &quot;empty folder&quot; placeholder text eating mouse events

M  +3    -5    src/views/dolphinview.cpp

https://invent.kde.org/system/dolphin/-/commit/c984badee32f691a787c3dea202ef5ef5446758b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2280741</commentid>
    <comment_count>7</comment_count>
    <who name="Jin Liu">m.liu.jin</who>
    <bug_when>2024-01-16 12:45:31 +0000</bug_when>
    <thetext>Git commit 59273a432b7a933864306cf5ab32fb1de1ac445a by Jin Liu.
Committed on 16/01/2024 at 13:45.
Pushed by genericity into branch &apos;release/24.02&apos;.

Fix: &quot;empty folder&quot; placeholder text eating mouse events

M  +3    -5    src/views/dolphinview.cpp

https://invent.kde.org/system/dolphin/-/commit/59273a432b7a933864306cf5ab32fb1de1ac445a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>