simple bugfix

This commit is contained in:
Samoilenko Yuri 2014-01-30 19:45:49 +04:00
parent 9ce35fbd4d
commit c18ee6f1d8
2 changed files with 5 additions and 2 deletions

View file

@ -37,7 +37,8 @@ public:
virtual ~Mounter();
bool wait();
bool isMounted() const {return m_started;}
Q_SIGNALS:
void mounted();
void unmounted(bool idleTimeout);

View file

@ -127,7 +127,7 @@ bool SftpPlugin::mountAndWait()
bool SftpPlugin::isMounted()
{
return m_d->mounter;
return m_d->mounter && m_d->mounter->isMounted();
}
bool SftpPlugin::startBrowsing()
@ -194,6 +194,8 @@ void SftpPlugin::onFailed(const QString& message)
, message
, KIconLoader::global()->loadIcon("dialog-error", KIconLoader::Desktop)
);
m_d->mounter->deleteLater();
m_d->mounter = 0;
}
void SftpPlugin::knotify(int type, const QString& text, const QPixmap& icon) const