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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src/mediadevice/vfat
From:       Jeff Mitchell <kde-dev () emailgoeshere ! com>
Date:       2006-02-07 20:37:26
Message-ID: 1139344646.403725.608.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 506881 by mitchell:

Display a message if user tries to connect a UMS device that is not mounted.  Also \
maybe take care of crash in getCapacity  as a result?


 M  +9 -0      vfatmediadevice.cpp  


--- trunk/extragear/multimedia/amarok/src/mediadevice/vfat/vfatmediadevice.cpp \
#506880:506881 @@ -145,6 +145,15 @@
 bool
 VfatMediaDevice::openDevice( bool /*silent*/ )
 {
+    DEBUG_BLOCK
+
+    if ( !m_medium->mountPoint() )
+    {
+        amaroK::StatusBar::instance()->longMessage( i18n( "Devices handled by this \
plugin must be mounted first.\nPlease mount the device and click Connect again." ), + \
KDE::StatusBar::Sorry ); +        return false;
+    }
+
     m_connected = true;
 
     listDir( m_medium->mountPoint() );


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

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