Changed some KNotifications to KDebugs
This commit is contained in:
parent
245ee18089
commit
e1649f1b1e
2 changed files with 5 additions and 17 deletions
|
@ -157,11 +157,9 @@ void Mounter::onError(QProcess::ProcessError error)
|
||||||
|
|
||||||
void Mounter::onFinished(int exitCode, QProcess::ExitStatus exitStatus)
|
void Mounter::onFinished(int exitCode, QProcess::ExitStatus exitStatus)
|
||||||
{
|
{
|
||||||
Q_UNUSED(exitCode);
|
|
||||||
|
|
||||||
if (exitStatus == QProcess::NormalExit)
|
if (exitStatus == QProcess::NormalExit)
|
||||||
{
|
{
|
||||||
kDebug(kdeconnect_kded()) << "Porcess finished";
|
kDebug(kdeconnect_kded()) << "Process finished (exit code: " << exitCode << ")";
|
||||||
|
|
||||||
if (m_proc->property(idleTimeout_c).toBool())
|
if (m_proc->property(idleTimeout_c).toBool())
|
||||||
{
|
{
|
||||||
|
@ -174,7 +172,7 @@ void Mounter::onFinished(int exitCode, QProcess::ExitStatus exitStatus)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
kDebug(kdeconnect_kded()) << "Porcess failed";
|
kDebug(kdeconnect_kded()) << "Porcess failed (exit code: " << exitCode << ")";
|
||||||
Q_EMIT failed(i18n("Error when accessing to filesystem"));
|
Q_EMIT failed(i18n("Error when accessing to filesystem"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -161,11 +161,7 @@ QString SftpPlugin::mountPoint()
|
||||||
|
|
||||||
void SftpPlugin::onMounted()
|
void SftpPlugin::onMounted()
|
||||||
{
|
{
|
||||||
kDebug(kdeconnect_kded()) << QString("Remote filesystem mounted at %1").arg(mountPoint());
|
kDebug(kdeconnect_kded()) << device()->name() << QString("Remote filesystem mounted at %1").arg(mountPoint());
|
||||||
knotify(KNotification::Notification
|
|
||||||
, i18n("Remote filesystem mounted")
|
|
||||||
, KIconLoader::global()->loadIcon("drive-removable-media", KIconLoader::Desktop)
|
|
||||||
);
|
|
||||||
|
|
||||||
Q_EMIT mounted();
|
Q_EMIT mounted();
|
||||||
}
|
}
|
||||||
|
@ -174,17 +170,11 @@ void SftpPlugin::onUnmounted(bool idleTimeout)
|
||||||
{
|
{
|
||||||
if (idleTimeout)
|
if (idleTimeout)
|
||||||
{
|
{
|
||||||
knotify(KNotification::Notification
|
kDebug(kdeconnect_kded()) << device()->name() << "Remote filesystem unmounted by idle timeout";
|
||||||
, i18n("Filesystem unmounted by idle timeout")
|
|
||||||
, KIconLoader::global()->loadIcon("clock", KIconLoader::Desktop)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
knotify(KNotification::Notification
|
kDebug(kdeconnect_kded()) << device()->name() << "Remote filesystem unmounted";
|
||||||
, i18n("Filesystem unmounted")
|
|
||||||
, KIconLoader::global()->loadIcon("dialog-ok", KIconLoader::Desktop)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_d->mounter->deleteLater();
|
m_d->mounter->deleteLater();
|
||||||
|
|
Loading…
Reference in a new issue