Bug 113804

Summary: When a camera is added to the toolbar, the icon is not displayed after DigiKam restart.
Product: [Applications] digikam Reporter: Tung NGUYEN <ntung>
Component: Usability-ToolbarsAssignee: Digikam Developers <digikam-bugs-null>
Status: CLOSED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 0.8.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 7.5.0
Sentry Crash Report:

Description Tung NGUYEN 2005-10-03 22:00:06 UTC
Version:           0.8.0-beta2 (using KDE KDE 3.4.2)
Installed from:    Compiled From Sources
OS:                Linux

The DigiKam 0.8.0-beta2 changelog on kde-apps.org (http://kde-apps.org/content/show.php?content=9957) says that "When a camera was added to the toolbar, the icon wasn't displayed after program restart" is fixed.

I have added my camera HP PhotoSmart 735 (PTP mode) in the toolbar, but it always disappears after DigiKam restart.
Comment 1 Renchi Raju 2005-10-04 10:42:13 UTC
SVN commit 467070 by pahlibar:

load the cameras before the createGUI, so that any
toolbar actions are plugged in correctly

BUGS: 113804


 M  +7 -5      digikamapp.cpp  


--- trunk/extragear/graphics/digikam/digikam/digikamapp.cpp #467069:467070
@@ -114,11 +114,6 @@
     mAlbumManager->setLibraryPath(mAlbumSettings->getAlbumLibraryPath());
     mAlbumManager->startScan();
 
-    // Load Cameras
-    if(mSplash)
-        mSplash->message(i18n("Loading cameras"), AlignLeft, white);
-    loadCameras();
-
     // Load KIPI Plugins.
     loadPlugins();
 
@@ -577,6 +572,13 @@
     // Provides a menu entry that allows showing/hiding the toolbar(s)
     setStandardToolBarMenuEnabled(true);
 
+    // Load Cameras -- do this before the createGUI so that the cameras
+    // are plugged into the toolbar at startup
+    if (mSplash)
+        mSplash->message(i18n("Loading cameras"), AlignLeft, white);
+    loadCameras();
+
+    
     createGUI(QString::fromLatin1( "digikamui.rc" ), false);
 
     // Initialize Actions ---------------------------------------
Comment 2 Tung NGUYEN 2005-10-07 13:29:59 UTC
I have tested this bug fix with the lastest SVN, the camera icon is displayed correctly in the main toolbar after DigiKam restart. 
 
Thank you. 
Comment 3 caulier.gilles 2005-10-07 13:31:29 UTC
Fixed by Renchi. Closed

Gilles