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

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase/kioslave/media
From:       Dirk Mueller <mueller () kde ! org>
Date:       2006-11-07 15:47:27
Message-ID: 1162914447.450467.8903.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 603018 by mueller:

- fix irritating error message upon media:/does/not/exist


 M  +7 -0      mediaimpl.cpp  


--- branches/KDE/3.5/kdebase/kioslave/media/mediaimpl.cpp #603017:603018
@@ -220,6 +220,13 @@
 
 bool MediaImpl::ensureMediumMounted(Medium &medium)
 {
+	if (medium.id().isEmpty())
+	{
+		m_lastErrorCode = KIO::ERR_COULD_NOT_MOUNT;
+		m_lastErrorMessage = i18n("No such medium.");
+		return false;
+	}
+
 	if ( medium.needMounting() )
 	{
 		m_lastErrorCode = 0;
[prev in list] [next in list] [prev in thread] [next in thread] 

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