summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/pcmcia/pcmcia.cpp24
-rw-r--r--noncore/settings/sysinfo/devicesinfo.cpp2
2 files changed, 18 insertions, 8 deletions
diff --git a/noncore/applets/pcmcia/pcmcia.cpp b/noncore/applets/pcmcia/pcmcia.cpp
index 5183572..7f24371 100644
--- a/noncore/applets/pcmcia/pcmcia.cpp
+++ b/noncore/applets/pcmcia/pcmcia.cpp
@@ -114,3 +114,3 @@ void PcmciaManager::mousePressEvent( QMouseEvent* )
114{ 114{
115 QPopupMenu * menu = new QPopupMenu( this ); 115 QPopupMenu* menu = new QPopupMenu( this );
116 QStringList cmd; 116 QStringList cmd;
@@ -125,3 +125,11 @@ void PcmciaManager::mousePressEvent( QMouseEvent* )
125 { 125 {
126 menu->insertItem( tr( "Eject card %1: %2" ).arg( i++ ).arg( it.currentKey() ), 1 ); 126
127 QPopupMenu* submenu = new QPopupMenu( menu );
128 submenu->insertItem( "Eject" );
129 submenu->insertItem( "Insert" );
130 submenu->insertItem( "Suspend" );
131 submenu->insertItem( "Resume" );
132 submenu->insertItem( "Configure" );
133
134 menu->insertItem( tr( "%1: %2" ).arg( i++ ).arg( it.current()->identity() ), submenu, 1 );
127 ++it; 135 ++it;
@@ -130,2 +138,3 @@ void PcmciaManager::mousePressEvent( QMouseEvent* )
130 138
139
131 /* insert items depending on number of cards etc. 140 /* insert items depending on number of cards etc.
@@ -137,3 +146,3 @@ void PcmciaManager::mousePressEvent( QMouseEvent* )
137 146
138 147
139 148
@@ -170,3 +179,3 @@ void PcmciaManager::cardMessage( const QCString & msg, const QByteArray & )
170 179
171 if ( !OPcmciaSystem::instance()->count() ) return; 180 if ( !OPcmciaSystem::instance()->cardCount() ) return;
172 181
@@ -180,5 +189,6 @@ void PcmciaManager::cardMessage( const QCString & msg, const QByteArray & )
180 bool newCard = true; 189 bool newCard = true;
181 while ( it.current() && newCard ) 190
191 while ( it.current() && !it.current()->isEmpty() && newCard )
182 { 192 {
183 QString name = it.currentKey(); 193 QString name = it.current()->identity();
184 for ( int i = 0; i < nCards; ++i ) 194 for ( int i = 0; i < nCards; ++i )
@@ -197,3 +207,2 @@ void PcmciaManager::cardMessage( const QCString & msg, const QByteArray & )
197 } 207 }
198 QString newCardName = it.currentKey();
199 208
@@ -201,2 +210,3 @@ void PcmciaManager::cardMessage( const QCString & msg, const QByteArray & )
201 { 210 {
211 QString newCardName = it.current()->identity();
202 odebug << "pcmcia: new card detected" << oendl; 212 odebug << "pcmcia: new card detected" << oendl;
diff --git a/noncore/settings/sysinfo/devicesinfo.cpp b/noncore/settings/sysinfo/devicesinfo.cpp
index 945edea..4940286 100644
--- a/noncore/settings/sysinfo/devicesinfo.cpp
+++ b/noncore/settings/sysinfo/devicesinfo.cpp
@@ -210,3 +210,3 @@ void CardsCategory::populate()
210 { 210 {
211 new CardDevice( this, (const char*) it.currentKey() ); 211 new CardDevice( this, it.current()->identity() );
212 ++it; 212 ++it;