Commit e1649f1b authored by Albert Vaca Cintora's avatar Albert Vaca Cintora
Browse files

Changed some KNotifications to KDebugs

parent 245ee180
......@@ -157,11 +157,9 @@ void Mounter::onError(QProcess::ProcessError error)
void Mounter::onFinished(int exitCode, QProcess::ExitStatus exitStatus)
{
Q_UNUSED(exitCode);
if (exitStatus == QProcess::NormalExit)
{
kDebug(kdeconnect_kded()) << "Porcess finished";
kDebug(kdeconnect_kded()) << "Process finished (exit code: " << exitCode << ")";
if (m_proc->property(idleTimeout_c).toBool())
{
......@@ -174,7 +172,7 @@ void Mounter::onFinished(int exitCode, QProcess::ExitStatus exitStatus)
}
else
{
kDebug(kdeconnect_kded()) << "Porcess failed";
kDebug(kdeconnect_kded()) << "Porcess failed (exit code: " << exitCode << ")";
Q_EMIT failed(i18n("Error when accessing to filesystem"));
}
......
......@@ -161,11 +161,7 @@ QString SftpPlugin::mountPoint()
void SftpPlugin::onMounted()
{
kDebug(kdeconnect_kded()) << QString("Remote filesystem mounted at %1").arg(mountPoint());
knotify(KNotification::Notification
, i18n("Remote filesystem mounted")
, KIconLoader::global()->loadIcon("drive-removable-media", KIconLoader::Desktop)
);
kDebug(kdeconnect_kded()) << device()->name() << QString("Remote filesystem mounted at %1").arg(mountPoint());
Q_EMIT mounted();
}
......@@ -174,17 +170,11 @@ void SftpPlugin::onUnmounted(bool idleTimeout)
{
if (idleTimeout)
{
knotify(KNotification::Notification
, i18n("Filesystem unmounted by idle timeout")
, KIconLoader::global()->loadIcon("clock", KIconLoader::Desktop)
);
kDebug(kdeconnect_kded()) << device()->name() << "Remote filesystem unmounted by idle timeout";
}
else
{
knotify(KNotification::Notification
, i18n("Filesystem unmounted")
, KIconLoader::global()->loadIcon("dialog-ok", KIconLoader::Desktop)
);
kDebug(kdeconnect_kded()) << device()->name() << "Remote filesystem unmounted";
}
m_d->mounter->deleteLater();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment