<?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>164301</bug_id>
          
          <creation_ts>2008-06-17 15:50:45 +0000</creation_ts>
          <short_desc>Filter Albums sub-tree names too, when using quickfilter on icon view</short_desc>
          <delta_ts>2012-08-06 09:04:14 +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>Albums-Filters</component>
          <version>unspecified</version>
          <rep_platform>Mandriva RPMs</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>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fri13">friiduh</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>0.9.4</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>612838</commentid>
    <comment_count>0</comment_count>
    <who name="Fri13">friiduh</who>
    <bug_when>2008-06-17 15:50:45 +0000</bug_when>
    <thetext>Version:            (using KDE 3.5.9)
Installed from:    Mandriva RPMs
OS:                Linux

Currently when &quot;View &gt; Include Albums Sub-Tree&quot; is ON and user has main album open what includes multiple sub-albums, the icon view filter does not filter search results from album names, only from photos and tags etc.

Expand this functionality so when typing to filter path, it is going to be searched from photos and sub-albums names too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612843</commentid>
    <comment_count>1</comment_count>
      <attachid>25407</attachid>
    <who name="Andi Clemens">andi.clemens</who>
    <bug_when>2008-06-17 15:55:03 +0000</bug_when>
    <thetext>Created attachment 25407
patch #1

Gilles,

what do you think? Can we add this to the final release...? This is really a
little patch that doesn&apos;t break anything.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612844</commentid>
    <comment_count>2</comment_count>
      <attachid>25408</attachid>
    <who name="Andi Clemens">andi.clemens</who>
    <bug_when>2008-06-17 15:55:04 +0000</bug_when>
    <thetext>Created attachment 25408
patch #1

Gilles,

what do you think? Can we add this to the final release...? This is really a
little patch that doesn&apos;t break anything.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612846</commentid>
    <comment_count>3</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2008-06-17 16:00:31 +0000</bug_when>
    <thetext>Andi,

Agree. Go ahead.

Gilles</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612848</commentid>
    <comment_count>4</comment_count>
    <who name="Andi Clemens">andi.clemens</who>
    <bug_when>2008-06-17 16:05:09 +0000</bug_when>
    <thetext>Yes Sir... :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612850</commentid>
    <comment_count>5</comment_count>
    <who name="Andi Clemens">andi.clemens</who>
    <bug_when>2008-06-17 16:10:10 +0000</bug_when>
    <thetext>SVN commit 821448 by aclemens:

Album names are searched as well now when using the quickfilter.

BUG:164301

 M  +1 -0      NEWS  
 M  +4 -1      digikam/albumlister.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=821448
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612872</commentid>
    <comment_count>6</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2008-06-17 16:36:06 +0000</bug_when>
    <thetext>SVN commit 821456 by cgilles:

backport commit #821448 from KDE3 branch
CCBUGS: 164301


 M  +6 -1      albumlister.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=821456
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613509</commentid>
    <comment_count>7</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2008-06-19 14:01:03 +0000</bug_when>
    <thetext>Andi, 

I have found a little problem with your patch : the album titles will be filtered only if this condition is true : 

if (settings-&gt;getIconShowName()) 
{
}

... getIconShowName() is return true if icon item name is displayed on iconview (file name in fact). This is not related to album title.

This is want mean than album titles will be filtered only when file names are displayed on icon-view. To solve this problem you just need to move album titles filtering code outside this conditional section.

Gilles

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613522</commentid>
    <comment_count>8</comment_count>
    <who name="Andi Clemens">andi.clemens</who>
    <bug_when>2008-06-19 14:42:01 +0000</bug_when>
    <thetext>So the quickfilter for text search only works when the filename, caption or tags are displayed in the thumbnail item? Maybe this should be mentioned somewhere, because if you don&apos;t display those fields, the search will always fail and some users might be confused.
I don&apos;t know but do we really need to check on those special cases? Like only filter for filename if filename is also displayed?
But as for the specific problem you are right of course, I need to move this line somewhere else.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613525</commentid>
    <comment_count>9</comment_count>
    <who name="Andi Clemens">andi.clemens</who>
    <bug_when>2008-06-19 14:54:17 +0000</bug_when>
    <thetext>SVN commit 822181 by aclemens:

fixed searching for folder names

CCBUGS:164301

 M  +6 -2      albumlister.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=822181
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613529</commentid>
    <comment_count>10</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2008-06-19 15:15:04 +0000</bug_when>
    <thetext>SVN commit 822187 by cgilles:

backport commit #822181 from KDE3 branch 
CCBUGS: 164301


 M  +7 -4      albumlister.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=822187
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613535</commentid>
    <comment_count>11</comment_count>
    <who name="Arnd Baecker">arnd.baecker</who>
    <bug_when>2008-06-19 15:25:30 +0000</bug_when>
    <thetext>&gt; So the quickfilter for text search only works when the filename, caption or tags are displayed in the thumbnail item? Maybe this should be mentioned somewhere, because if you don&apos;t display those fields, the search will always fail and some users might be confused.
&gt; I don&apos;t know but do we really need to check on those special cases? Like only filter for filename if filename is also displayed?


I am also not sure about this. I.e. the quick filter could always
work, even if filename/caption or tag are not displayed.
Conceptually this is the difference between filtering
according to the &quot;properties&quot; of an image, or according
to what is displayed. Maybe the first is more natural?
(For example for more than a few tags, they are not visible anyway
due to lack of space....)

Best, Arnd
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613540</commentid>
    <comment_count>12</comment_count>
    <who name="Andi Clemens">andi.clemens</who>
    <bug_when>2008-06-19 15:34:15 +0000</bug_when>
    <thetext>Also if displaying tags, filenames and tags all together is turned off, the quick filter for text search becomes disabled (visually). But if you don&apos;t know why this is happening, some might think this is a bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>25407</attachid>
            <date>2008-06-17 15:55:03 +0000</date>
            <delta_ts>2008-06-17 15:55:03 +0000</delta_ts>
            <desc>patch #1</desc>
            <filename>albumlister.patch</filename>
            <type>text/plain</type>
            <size>648</size>
            <attacher name="Andi Clemens">andi.clemens</attacher>
            
              <data encoding="base64">SW5kZXg6IGRpZ2lrYW0vYWxidW1saXN0ZXIuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGRpZ2lrYW0vYWxi
dW1saXN0ZXIuY3BwCShyZXZpc2lvbiA4MjEzOTUpCisrKyBkaWdpa2FtL2FsYnVtbGlzdGVyLmNw
cAkod29ya2luZyBjb3B5KQpAQCAtNDMwLDggKzQzMCwxMSBAQAogICAgICAgICBmb3VuZFRleHQg
PSBmYWxzZTsKICAgICAgICAgaWYgKHNldHRpbmdzLT5nZXRJY29uU2hvd05hbWUoKSkKICAgICAg
ICAgewotICAgICAgICAgICAgaWYgKGluZm8tPm5hbWUoKS5sb3dlcigpLmNvbnRhaW5zKGQtPnRl
eHRGaWx0ZXIubG93ZXIoKSkpCisgICAgICAgICAgICBpZiAoaW5mby0+bmFtZSgpLmxvd2VyKCku
Y29udGFpbnMoZC0+dGV4dEZpbHRlci5sb3dlcigpKSB8fAorICAgICAgICAgICAgICAgIGluZm8t
PmFsYnVtKCktPnRpdGxlKCkubG93ZXIoKS5jb250YWlucyhkLT50ZXh0RmlsdGVyLmxvd2VyKCkp
KQorICAgICAgICAgICAgewogICAgICAgICAgICAgICAgIGZvdW5kVGV4dCA9IHRydWU7CisgICAg
ICAgICAgICB9CiAgICAgICAgIH0KICAgICAgICAgaWYgKHNldHRpbmdzLT5nZXRJY29uU2hvd0Nv
bW1lbnRzKCkpCiAgICAgICAgIHsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>25408</attachid>
            <date>2008-06-17 15:55:04 +0000</date>
            <delta_ts>2008-06-17 15:55:04 +0000</delta_ts>
            <desc>patch #1</desc>
            <filename>albumlister.patch</filename>
            <type>text/plain</type>
            <size>648</size>
            <attacher name="Andi Clemens">andi.clemens</attacher>
            
              <data encoding="base64">SW5kZXg6IGRpZ2lrYW0vYWxidW1saXN0ZXIuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGRpZ2lrYW0vYWxi
dW1saXN0ZXIuY3BwCShyZXZpc2lvbiA4MjEzOTUpCisrKyBkaWdpa2FtL2FsYnVtbGlzdGVyLmNw
cAkod29ya2luZyBjb3B5KQpAQCAtNDMwLDggKzQzMCwxMSBAQAogICAgICAgICBmb3VuZFRleHQg
PSBmYWxzZTsKICAgICAgICAgaWYgKHNldHRpbmdzLT5nZXRJY29uU2hvd05hbWUoKSkKICAgICAg
ICAgewotICAgICAgICAgICAgaWYgKGluZm8tPm5hbWUoKS5sb3dlcigpLmNvbnRhaW5zKGQtPnRl
eHRGaWx0ZXIubG93ZXIoKSkpCisgICAgICAgICAgICBpZiAoaW5mby0+bmFtZSgpLmxvd2VyKCku
Y29udGFpbnMoZC0+dGV4dEZpbHRlci5sb3dlcigpKSB8fAorICAgICAgICAgICAgICAgIGluZm8t
PmFsYnVtKCktPnRpdGxlKCkubG93ZXIoKS5jb250YWlucyhkLT50ZXh0RmlsdGVyLmxvd2VyKCkp
KQorICAgICAgICAgICAgewogICAgICAgICAgICAgICAgIGZvdW5kVGV4dCA9IHRydWU7CisgICAg
ICAgICAgICB9CiAgICAgICAgIH0KICAgICAgICAgaWYgKHNldHRpbmdzLT5nZXRJY29uU2hvd0Nv
bW1lbnRzKCkpCiAgICAgICAgIHsK
</data>

          </attachment>
      

    </bug>

</bugzilla>