[Digikam-devel] digikam just crashed

Renchi Raju renchi at pooh.tam.uiuc.edu
Sun Jun 19 19:38:24 BST 2005



On Sun, 19 Jun 2005, Oliver Dörr wrote:

> uupss i forgot.
>
> I'm using the tarball 0.7.3 that Renmchi has provided for testing
> (downloaded yesterday)

oliver,

can you try the attached patch and see if it fixes the problem for you. to 
apply patch:

cd digikam-0.7.3/digikam
patch -p0 < /path/to/d.gpiface.patch
make; make install

renchi
-------------- next part --------------
Index: utilities/setup/gpiface.cpp
===================================================================
--- utilities/setup/gpiface.cpp	(revision 426554)
+++ utilities/setup/gpiface.cpp	(working copy)
@@ -57,6 +57,9 @@
         return -1;
     }
 
+    camModel_ = 0;
+    camPort_  = 0;
+    
     for (int i = 0; i < count; i++) {
         gp_list_get_name  (camList, i, &camModel_);
         gp_list_get_value (camList, i, &camPort_);
@@ -64,8 +67,11 @@
 
     gp_list_free (camList);
 
-    model = camModel_;
-    port  = camPort_;
+    if (camModel_ && camPort_)
+    {
+        model = QString::fromLatin1(camModel_);
+        port  = QString::fromLatin1(camPort_);
+    }
 
     return 0;
 }


More information about the Digikam-devel mailing list