Bug 180003

Summary: when creating a new folder where download new photoes the parent album remains selected
Product: [Applications] digikam Reporter: Salvatore Brigaglia <opensourcecat>
Component: Import-AlbumsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bdillahu
Priority: NOR    
Version: 0.10.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 0.10.0
Attachments: patch

Description Salvatore Brigaglia 2009-01-08 10:12:53 UTC
Version:           0.10.0-rc1 (rev.: 906129) (using 4.1.87 (KDE 4.1.87 (KDE 4.2 >= 20090101)) "release 3.1", KDE:KDE4:UNSTABLE:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.7-9-pae

When you select pictures from the camera gui and click download it gives you the ability to select the folder where to put images. If you click the button to create new folder and enter the name of the new folder the new folder is created but both new and parent folder remains selected. This causes (if you don't manually click on the new album) pictures to be downloaded in the new folder's parent folder.

It should select automatilcally only the new folder you just created!
Comment 1 Will Stephenson 2009-01-08 12:00:34 UTC
Created attachment 30024 [details]
patch

Confirmed, the selection mode is not changed from the default.  However I tried doing just this and the bug persists.  Qt bug perhaps?

The attached patch gives the desired behaviour by clearing any existing selection when selecting the new albumitem.

Also I changed uses of currentItem() to selectedItems() as using currentItem() assumes that the treewidget is in single selection mode.
Comment 2 Andi Clemens 2009-01-08 14:25:19 UTC
Patch seems to work fine... anyone else tested it?

+1 from me...

Andi
Comment 3 Salvatore Brigaglia 2009-01-08 15:58:10 UTC
i and it is not working here:

digikam svn revision 907680
Comment 4 bdillahu 2009-01-09 14:27:39 UTC
*** Bug 180089 has been marked as a duplicate of this bug. ***
Comment 5 caulier.gilles 2009-01-12 14:21:47 UTC
SVN commit 909924 by cgilles:

digiKam from trunk : set QtreeWidget item selection properly when new album is created
BUG: 180447
BUG: 180003


 M  +2 -0      albumselectdialog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=909924