[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdegraphics/kamera/kioslave
From:       Antonio Larrosa Jimenez <larrosa () kde ! org>
Date:       2003-08-07 10:43:33
[Download RAW message or body]

CVS commit by antlarr: 

This change is needed for the ioslave to work. It seems it gets the camera to
use from the host name used, but the hostname is always
lowercase, while the group of a config file is case sensitive, so it didn't
find the camera and refused to work (giving an "unknown model" message)
I'm afraid this means that the camera name appears in lower case when browsing
camera:/ which is not very nice, but at least it works, and I don't see any
other solution.

Btw, who is the mantainer of the kamera ioslave and control module ?
None of this files have any license nor any copyright.
CCMAIL: Nadeem Hasan <nhasan@nadmm.com>, marcus@jet.franken.de


  M +2 -2      kamera.cpp   1.34


--- kdegraphics/kamera/kioslave/kamera.cpp  #1.33:1.34
@@ -108,5 +108,5 @@ void KameraProtocol::autoDetect(void)
                         continue;
                 kdDebug(7123) << "Adding " << model << " at " << value << endl;
-                m_config->setGroup(model);
+                m_config->setGroup(QString::fromLatin1(model).lower());
                 m_config->writeEntry("Model",model);
                 m_config->writeEntry("Path",value);
@@ -551,5 +551,5 @@ void KameraProtocol::setHost(const QStri
         if (!host.isEmpty()) {
                 // Read configuration
-                m_config->setGroup(host);
+                m_config->setGroup(host.lower());
                 QString m_cfgModel = m_config->readEntry("Model");
                 QString m_cfgPath = m_config->readEntry("Path");


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic