summaryrefslogtreecommitdiff
path: root/libopie2
Side-by-side diff
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/linux/opcmciasystem.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libopie2/opiecore/linux/opcmciasystem.cpp b/libopie2/opiecore/linux/opcmciasystem.cpp
index a924696..34e4477 100644
--- a/libopie2/opiecore/linux/opcmciasystem.cpp
+++ b/libopie2/opiecore/linux/opcmciasystem.cpp
@@ -78,12 +78,13 @@ void OPcmciaSystem::synchronize()
while ( !cardinfo.atEnd() )
{
QString line = cardinfo.readLine();
- if ( line.startsWith( "Socket" ) )
+ // qDebug( "line = '%s'", (const char*) line );
+ if ( line.startsWith( "Socket" ) && ! line.contains( "empty" ) )
{
int mid = line.find( ':' );
QString name = line.right( line.length() - mid - 1 );
QString id = line.right( line.length() - mid + 1 );
- if ( mid ) _interfaces.insert( name, new OPcmciaCard( this, (const char*) id ) );
+ if ( mid ) _interfaces.insert( name.stripWhiteSpace(), new OPcmciaCard( this, (const char*) id.stripWhiteSpace() ) );
}
else
{