Bug 293344

Summary: Import dialog buggy
Product: [Applications] kphotoalbum Reporter: Miika Turkia <miika.turkia>
Component: Import/ExportAssignee: KPhotoAlbum Bugs <kphotoalbum-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: aspotashev
Priority: NOR    
Version First Reported In: SVN trunk (KDE4 version)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Miika Turkia 2012-02-05 07:21:18 UTC
Version:           SVN trunk (KDE4 version)
OS:                Linux

The import dialog has some faults in it.
1) If importing .kim file that has new/unknown categories none of them might be checked by default on Match Categories view. In this case if someone clicks next the import function is ended prematurely.
2) If one advances from Match Categories and then hits Back to tune the category selections, all the options are disabled.
3) The selection in Match Categories does not seem to reflect to what is configured afterwards.
4) New categories are not created as would be needed by the import file - I think an option should be added to the Match Categories view to create new category (in the drop down menu of "key in your database" could include "Create - <orig name>")
5) Keywords e.g. from my Latin Name category are inserted to Events by default if the destination KPA has only the default categories. It appears that this matching is used even though the check box for this mapping is not enabled in the Match Categories view.

Reproducible: Always

Steps to Reproduce:
Use the import .kim feature. Try with non-matching categories in the import file and in the destination KPA.


Expected Results:  
1) Continue the import function normally
2) Have the selections enabled
3) Matching the categories should reflect to what is configured afterwards, that is the selected categories and only them should be worked on
4) Add new category to own database should be added as option
5) If one category is not selected, it should be ignored

Should probably start looking from ImportExport/ImportDialog.cpp and functions ImportDialog::createCategoryPages and ImportDialog::next.