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

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase/kioslave/media/mounthelper
From:       Kevin Ottens <ervin () kde ! org>
Date:       2006-06-15 22:13:24
Message-ID: 1150409604.181550.7092.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 551890 by ervin:

It seems that letting "eject" handling the unmount doesn't introduce 
undesired side-effects. So let's do it this way, to avoid error on 
unmount for supermounted devices.

BUG: 116209


 M  +0 -13     kio_media_mounthelper.cpp  


--- branches/KDE/3.5/kdebase/kioslave/media/mounthelper/kio_media_mounthelper.cpp #551889:551890
@@ -91,19 +91,6 @@
 	}
 	else if (args->isSet("s") || args->isSet("e"))
 	{
-		if (medium.isMounted())
-		{
-		  DCOPRef mediamanager("kded", "mediamanager");
-		  DCOPReply reply = mediamanager.call( "unmount", medium.id());
-		  if (reply.isValid())
-		    reply.get(m_errorStr);
-		  m_device = device;
-		  if (!m_errorStr.isNull()) 
-		    {
-		      error();
-		      return;
-		    }
-		}
 		invokeEject(device, true);
 	}
 	else
[prev in list] [next in list] [prev in thread] [next in thread] 

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