<?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>103941</bug_id>
          
          <creation_ts>2005-04-15 11:05:35 +0000</creation_ts>
          <short_desc>Konqueror does not understand unchecked &apos;URLs expire after&apos; while loading preferences (Maximum age of History entries=0)</short_desc>
          <delta_ts>2005-04-19 22:47:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</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>0</everconfirmed>
          <reporter name="Piotr Budny">piotr.budny+bugskde</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          
          
          <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>334718</commentid>
    <comment_count>0</comment_count>
    <who name="Piotr Budny">piotr.budny+bugskde</who>
    <bug_when>2005-04-15 11:05:35 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.4.0)
Installed from:    Unlisted Binary Package
Compiler:          gcc-3.3.5-2 
OS:                Linux

When I uncheck checkbox &apos;URLs expire after&apos;, konqueror saves in konquerorrc the state as Do not expire URLs: Maximum age of History entries=0, that&apos;s OK.

But when I open the history preferences dialog again, the checkbox is checked, the number of days is enabled, and it&apos;s value is set to 1.
When I do changes on this dialog (even not touching URLs expire after) and I click OK, the preferences dialog saves the new Maximum age to 1. Whilst it should read the state 0 as unckecked URLs expiration age (not to expire) and disabled spinbox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>335032</commentid>
    <comment_count>1</comment_count>
      <attachid>10671</attachid>
    <who name="Piotr Budny">piotr.budny+bugskde</who>
    <bug_when>2005-04-16 15:40:02 +0000</bug_when>
    <thetext>Created attachment 10671
Patch that fixes that bug

I don&apos;t know if it is done right, keep in mind I&apos;m the beginner as a developer
in Qt/KDE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>335965</commentid>
    <comment_count>2</comment_count>
    <who name="Pascal Létourneau">pascal.letourneau</who>
    <bug_when>2005-04-19 22:47:59 +0000</bug_when>
    <thetext>CVS commit by pletourn: 

Allow the history to be disabled

BUG:103941


  M +2 -2      kcmhistory.cpp   1.16.2.2


--- kdebase/konqueror/sidebar/trees/history_module/kcmhistory.cpp  #1.16.2.1:1.16.2.2
@@ -60,6 +60,6 @@ HistorySidebarConfig::HistorySidebarConf
     dialog = new KonqSidebarHistoryDlg(this);
 
-    dialog-&gt;spinEntries-&gt;setRange( 1, INT_MAX, 1, false );
-    dialog-&gt;spinExpire-&gt;setRange(  1, INT_MAX, 1, false );
+    dialog-&gt;spinEntries-&gt;setRange( 0, INT_MAX, 1, false );
+    dialog-&gt;spinExpire-&gt;setRange(  0, INT_MAX, 1, false );
 
     dialog-&gt;spinNewer-&gt;setRange( 0, INT_MAX, 1, false );
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>10671</attachid>
            <date>2005-04-16 15:40:02 +0000</date>
            <delta_ts>2005-04-16 15:40:02 +0000</delta_ts>
            <desc>Patch that fixes that bug</desc>
            <filename>kcmhistory.cpp.diff</filename>
            <type>text/plain</type>
            <size>778</size>
            <attacher name="Piotr Budny">piotr.budny+bugskde</att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