<?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>255938</bug_id>
          
          <creation_ts>2010-11-03 05:33:05 +0000</creation_ts>
          <short_desc>Closing the Entry Editor doesn&apos;t discard edits in the dialog boxes</short_desc>
          <delta_ts>2010-11-03 06:39:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>tellico</product>
          <component>general</component>
          <version>2.3</version>
          <rep_platform>Unlisted Binaries</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="Robby Stephenson">robby</reporter>
          <assigned_to name="Robby Stephenson">robby</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>1039793</commentid>
    <comment_count>0</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2010-11-03 05:33:05 +0000</bug_when>
    <thetext>Version:           2.3 (using Devel) 
OS:                Linux

1) double-click on an entry to open it
2) type something into an empty field or change an existing field
3) click close
4) click discard
   --&gt; the entry is not bolded
   --&gt; the collection is not marked as having a change (title bar
doesn&apos;t include &apos;[modified]&apos;)
5) double-click on the entry again
   --&gt; the text I entered is (incorrectly) still there

At this point, if I select a different entry and then re-select the
initial entry, the text will be properly discarded.  I selected a
different entry, made &amp; saved a change there, and then saved the
Tellico file; when I re-opened the file the discarded text was
(correctly) still gone.

To cause potential data loss: repeat steps 1-5, then:
6) edit another field
7) click close
8) click save entry
   --&gt; the original, &quot;discarded&quot; change gets (incorrectly) applied

This could cause data loss in the case where a user edits an entry,
makes a mistake and wants to &apos;start over&apos;, closes the entry and
discards their changes, then re-edits the entry.  A bit of a corner
case, but could catch someone who isn&apos;t paying close attention or
making changes in multiple categories (tabs).

Reproducible: Didn&apos;t try</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1039795</commentid>
    <comment_count>1</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2010-11-03 06:39:10 +0000</bug_when>
    <thetext>SVN commit 1192429 by rstephenson:

Be consistent with behavior for edit dialog when closing. If Cancel
is clicked, keep the dialog open. And be sure to discard edits.

BUG:255938


 M  +4 -0      ChangeLog  
 M  +27 -5     src/entryeditdialog.cpp  
 M  +4 -0      src/entryeditdialog.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1192429</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>