Bug 131551 - camera port info deleted when editing camera title
Summary: camera port info deleted when editing camera title
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-Cameras (show other bugs)
Version: 0.8.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-30 16:18 UTC by Mark Juhasz
Modified: 2017-08-17 17:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Juhasz 2006-07-30 16:18:08 UTC
Version:           0.8.1 (using KDE KDE 3.5.1)
Installed from:    SuSE RPMs
Compiler:          gcc 4.1 
OS:                Linux

When editing the entry for an existing camera (e.g. to change the title of the camera), port information is automatically deleted from the camera.   

For example:
A compact flash card is inserted in the card reader.  Digikam is loaded.  
Camera>Add Camera>Auto-Detect correctly configures the card, and labels it "Mass Storage Camera"
I can connect to this card and tranfer photos from it.  I can change the title of the camera (e.g. to "Compact Flash 1GB"), by Camera>Add Camera>Edit, I am able to change the camera name.  After this step is the problem.

Action:  try to connect to the renamed camera by Camera>Compact Flash 1GB

Expected Result: pictures on the Compact Flash card will be displayed

Actual Result: the pictures are not displayed.

How to reproduce:  after autodetecting the mass storage camera (a CF card), changing the name of the card results in  a failure to display pictures on the card

Other information:  The camera port information is apparently deleted automatically when editing the title of the camera.  The file cameras.xml confirms this.  Immediately after autodetection of the CF card, cameras.xml reads:

<!DOCTYPE XMLCameraList>
<cameralist client="digikam" version="1.0" >
 <item port="disk:/media/EOS_DIGITAL" title="Mass Storage Camera" model="Mass Storage Camera" path="/" />
</cameralist>

After renaming the camera to "Compact Flash 1GB" cameras.xml reads:

<!DOCTYPE XMLCameraList>
<cameralist client="digikam" version="1.0" >
 <item port="" title="Compact Flash 1GB" model="Mass Storage Camera" path="/" />
</cameralist>
Comment 1 caulier.gilles 2008-12-04 15:43:04 UTC
Andi

This bug is really old. I remember to have tested this issue with 0.8.x and it can be reproduced...

I have never tested with 0.9.x or 0.10.0

Gilles
Comment 2 Andi Clemens 2008-12-04 15:51:42 UTC
I can confirm this for 0.10...

Andi
Comment 3 Andi Clemens 2008-12-04 15:54:43 UTC
Note: My card reader will be listed as a USB device, so I would not add it as a "Mass Storage Camera" at all. But when I do and when I rename the camera, connection is broken.

Andi
Comment 4 caulier.gilles 2008-12-04 15:59:11 UTC
If i remember, the problem is in digikam/cameralist.cpp

Gilles
Comment 5 caulier.gilles 2009-05-14 09:34:37 UTC
SVN commit 967846 by cgilles:

don't lost camera port when editing
BUG: 131551


 M  +4 -2      cameraselection.cpp  


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