From b54fcda719b94c629c11e9b3462f2c9a2c5a9666 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 25 Aug 2019 11:21:21 +0900 Subject: tdeioslave media: fixed handling of mountable state for encrypted devices. Signed-off-by: Michele Calgaro --- tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp') diff --git a/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp b/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp index f02c93c84..d3fb4ac35 100644 --- a/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp +++ b/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp @@ -81,9 +81,9 @@ MountHelper::MountHelper() : TDEApplication() return; } - if (!medium.isMountable() && !args->isSet("e") && !args->isSet("s")) + if (!medium.isMountable() && !medium.isEncrypted() && !args->isSet("e") && !args->isSet("s")) { - m_errorStr = i18n("%1 is not a mountable media.").arg(url.prettyURL()); + m_errorStr = i18n("%1 is not a mountable or encrypted media.").arg(url.prettyURL()); TQTimer::singleShot(0, this, TQT_SLOT(error())); return; } -- cgit v1.2.3