Bug 113804 - When a camera is added to the toolbar, the icon is not displayed after DigiKam restart.
Summary: When a camera is added to the toolbar, the icon is not displayed after DigiKa...
Status: CLOSED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Toolbars (show other bugs)
Version: 0.8.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-03 22:00 UTC by Tung NGUYEN
Modified: 2023-04-25 03:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0
Sentry Crash Report:


Attachments

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