Bug 180003 - when creating a new folder where download new photoes the parent album remains selected
Summary: when creating a new folder where download new photoes the parent album remain...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Albums (show other bugs)
Version: 0.10.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-08 10:12 UTC by Salvatore Brigaglia
Modified: 2017-08-16 09:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.10.0


Attachments
patch (2.85 KB, patch)
2009-01-08 12:00 UTC, Will Stephenson
Details

Note You need to log in before you can comment on or make changes to this bug.
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