Bug 370522

Summary: kaddressbook: Progress window misbehaves on consecutive vCard imports
Product: [Applications] kaddressbook Reporter: Helmar Gerloni <helmar>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: montel, tokoe
Priority: NOR    
Version: GIT   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description Helmar Gerloni 2016-10-12 07:13:55 UTC
When doing multiple consecutive vCard imports the progress window misbehaves.

First seen on Debian Stretch, kaddressbook 4:16.04.3-1, reproduced on neon-devedition-gitunstable, kaddressbook 4:16.08.0+p16.04+git20161008.0936-0:



Reproducible: Always

Steps to Reproduce:
1. Start kaddressbook

2. Menu File - Import - Import vCard
  Select 20 vcf files (each containing one contact)
    Open
      Select Address Book "Personal Contacts", then OK
Normal behavior: Progress window opens, says "Importing 20 contacts to Personal Contacts", progress bar walks from 0 to 100%, then closes correctly, all 20 contacts are imported correctly.

3. Then the same again, now with 10 vcf files:
Wrong behavior: Progress window opens, says "Importing 20 contacts to Personal Contacts", progress bar stops at 47%, progress window does not close, but all 10 contacts are imported correctly. Progress window must be closed manually.

Actual Results:  
Wrong behavior: Progress window opens, says "Importing 20 contacts to Personal Contacts", progress bar stops at 47%, progress window does not close, but all 10 contacts are imported correctly. Progress window must be closed manually.

Expected Results:  
Normal behavior: Progress window opens, says "Importing 20 contacts to Personal Contacts", progress bar walks from 0 to 100%, then closes correctly, all 20 contacts are imported correctly.
Comment 1 Laurent Montel 2017-04-25 14:56:38 UTC
it works fine here.
Could you test with last version please ?
Comment 2 Helmar Gerloni 2017-04-25 16:25:00 UTC
Just tested with kaddressbook 4:17.04.0+p16.04+git20170424.2055-0:

Works as expected now, progress window shows the correct number of contacts also on the second import, bar walks to 100% and window closes.

Thanks!
Comment 3 Laurent Montel 2017-04-26 05:33:39 UTC
Ok so I can close it :)