<?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>145168</bug_id>
          
          <creation_ts>2007-05-08 06:57:00 +0000</creation_ts>
          <short_desc>Filter isn&apos;t applied to directories</short_desc>
          <delta_ts>2009-01-16 18:20:34 +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>general</component>
          <version>16.12.2</version>
          <rep_platform>Ubuntu</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="Tobias">flabbergasted</reporter>
          <assigned_to name="Peter Penz">peter.penz19</assigned_to>
          <cc>nicolas.brisset</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>524711</commentid>
    <comment_count>0</comment_count>
    <who name="Tobias">flabbergasted</who>
    <bug_when>2007-05-08 06:57:00 +0000</bug_when>
    <thetext>Version:           0.8.1 (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages
OS:                Linux

Hi,

the quick filter in dolphin isn&apos;t applied to directories. This is very annoying especially in directories with many subdirectories. I think there should at least be an option to change this. 

What&apos;s more it would be nice if you could make the filter field permanent.

Tobias</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>526555</commentid>
    <comment_count>1</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2007-05-18 14:44:55 +0000</bug_when>
    <thetext>SVN commit 665964 by ppenz:

- allow to configure that the filter bar should be shown after starting Dolphin (is off per default)
- some minor naming cleanups

BUG: 145168

 M  +4 -0      dolphin_generalsettings.kcfg  
 M  +6 -3      dolphinview.cpp  
 M  +19 -12    generalsettingspage.cpp  
 M  +3 -2      generalsettingspage.h  


--- trunk/KDE/kdebase/apps/dolphin/src/dolphin_generalsettings.kcfg #665963:665964
@@ -19,6 +19,10 @@
             &lt;label&gt;Split the view into two panes&lt;/label&gt;
             &lt;default&gt;false&lt;/default&gt;
         &lt;/entry&gt;
+        &lt;entry name=&quot;FilterBar&quot; type=&quot;Bool&quot;&gt;
+            &lt;label&gt;Should the filter bar be shown&lt;/label&gt;
+            &lt;default&gt;false&lt;/default&gt;
+        &lt;/entry&gt;
         &lt;entry name=&quot;GlobalViewProps&quot; type=&quot;Bool&quot;&gt;
             &lt;label&gt;Should the view properties used for all directories&lt;/label&gt;
             &lt;default&gt;false&lt;/default&gt;
--- trunk/KDE/kdebase/apps/dolphin/src/dolphinview.cpp #665963:665964
@@ -100,8 +100,11 @@
             this, SLOT(updateCutItems()));
 
     m_urlNavigator = new KUrlNavigator(DolphinSettings::instance().placesModel(), url, this);
-    m_urlNavigator-&gt;setUrlEditable(DolphinSettings::instance().generalSettings()-&gt;editableUrl());
-    m_urlNavigator-&gt;setHomeUrl(DolphinSettings::instance().generalSettings()-&gt;homeUrl());
+
+    const GeneralSettings* settings = DolphinSettings::instance().generalSettings();
+    m_urlNavigator-&gt;setUrlEditable(settings-&gt;editableUrl());
+    m_urlNavigator-&gt;setHomeUrl(settings-&gt;homeUrl());
+
     connect(m_urlNavigator, SIGNAL(urlChanged(const KUrl&amp;)),
             this, SLOT(changeDirectory(const KUrl&amp;)));
     connect(m_urlNavigator, SIGNAL(urlsDropped(const KUrl::List&amp;, const KUrl&amp;)),
@@ -168,7 +171,7 @@
     m_iconSize = K3Icon::SizeMedium;
 
     m_filterBar = new FilterBar(this);
-    m_filterBar-&gt;hide();
+    m_filterBar-&gt;setVisible(settings-&gt;filterBar());
     connect(m_filterBar, SIGNAL(filterChanged(const QString&amp;)),
             this, SLOT(changeNameFilter(const QString&amp;)));
     connect(m_filterBar, SIGNAL(closeRequest()),
--- trunk/KDE/kdebase/apps/dolphin/src/generalsettingspage.cpp #665963:665964
@@ -42,8 +42,9 @@
     SettingsPageBase(parent),
     m_mainWindow(mainWin),
     m_homeUrl(0),
-    m_startSplit(0),
-    m_startEditable(0),
+    m_splitView(0),
+    m_editableUrl(0),
+    m_filterBar(0),
     m_showDeleteCommand(0)
 {
     const int spacing = KDialog::spacingHint();
@@ -82,17 +83,22 @@
 
     QGroupBox* startBox = new QGroupBox(i18n(&quot;Start&quot;), vBox);
 
-    // create &apos;Start with split view&apos; checkbox
-    m_startSplit = new QCheckBox(i18n(&quot;Start with split view&quot;), startBox);
-    m_startSplit-&gt;setChecked(settings-&gt;splitView());
+    // create &apos;Split view&apos; checkbox
+    m_splitView = new QCheckBox(i18n(&quot;Split view&quot;), startBox);
+    m_splitView-&gt;setChecked(settings-&gt;splitView());
 
-    // create &apos;Start with editable navigation bar&apos; checkbox
-    m_startEditable = new QCheckBox(i18n(&quot;Start with editable navigation bar&quot;), startBox);
-    m_startEditable-&gt;setChecked(settings-&gt;editableUrl());
+    // create &apos;Editable location&apos; checkbox
+    m_editableUrl = new QCheckBox(i18n(&quot;Editable location&quot;), startBox);
+    m_editableUrl-&gt;setChecked(settings-&gt;editableUrl());
 
+    // create &apos;Filter bar&apos; checkbox
+    m_filterBar = new QCheckBox(i18n(&quot;Filter bar&quot;),startBox);
+    m_filterBar-&gt;setChecked(settings-&gt;filterBar());
+
     QVBoxLayout* startBoxLayout = new QVBoxLayout(startBox);
-    startBoxLayout-&gt;addWidget(m_startSplit);
-    startBoxLayout-&gt;addWidget(m_startEditable);
+    startBoxLayout-&gt;addWidget(m_splitView);
+    startBoxLayout-&gt;addWidget(m_editableUrl);
+    startBoxLayout-&gt;addWidget(m_filterBar);
 
     m_showDeleteCommand = new QCheckBox(i18n(&quot;Show the command &apos;Delete&apos; in context menu&quot;), vBox);
     const KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig(&quot;kdeglobals&quot;, KConfig::NoGlobals);
@@ -121,8 +127,9 @@
         settings-&gt;setHomeUrl(url.prettyUrl());
     }
 
-    settings-&gt;setSplitView(m_startSplit-&gt;isChecked());
-    settings-&gt;setEditableUrl(m_startEditable-&gt;isChecked());
+    settings-&gt;setSplitView(m_splitView-&gt;isChecked());
+    settings-&gt;setEditableUrl(m_editableUrl-&gt;isChecked());
+    settings-&gt;setFilterBar(m_filterBar-&gt;isChecked());
 
     KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig(&quot;kdeglobals&quot;, KConfig::NoGlobals);
     KConfigGroup kdeConfig(globalConfig, &quot;KDE&quot;);
--- trunk/KDE/kdebase/apps/dolphin/src/generalsettingspage.h #665963:665964
@@ -52,8 +52,9 @@
 private:
     DolphinMainWindow* m_mainWindow;
     QLineEdit* m_homeUrl;
-    QCheckBox* m_startSplit;
-    QCheckBox* m_startEditable;
+    QCheckBox* m_splitView;
+    QCheckBox* m_editableUrl;
+    QCheckBox* m_filterBar;
     QCheckBox* m_showDeleteCommand;
 };
 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>526557</commentid>
    <comment_count>2</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2007-05-18 14:46:08 +0000</bug_when>
    <thetext>PS: the filter also is applied on directories, but nothing had to be fixed in the KDE4 version of Dolphin, as this already worked there :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>700884</commentid>
    <comment_count>3</comment_count>
    <who name="Nicolas Brisset">nicolas.brisset</who>
    <bug_when>2009-01-16 18:20:34 +0000</bug_when>
    <thetext>See comment #10 on bug #171164: I first wanted to ask to remove the filtering of directories (at least as an option) to allow navigating the folders. But thinking more about it, I believe it should only be an option for users who really can&apos;t get used to filtered dirs, or who use the editable location bar (in which case navigating with the mouse won&apos;t work if directories are filtered).

The other question is where to put the option: a button in the toolbar to toggle it, or only in the settings dialog ?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>