Commit eafa0194 authored by Samoilenko Yuri's avatar Samoilenko Yuri
Browse files

simple bugfix

parent 1d8ea764
...@@ -37,7 +37,8 @@ public: ...@@ -37,7 +37,8 @@ public:
virtual ~Mounter(); virtual ~Mounter();
bool wait(); bool wait();
bool isMounted() const {return m_started;}
Q_SIGNALS: Q_SIGNALS:
void mounted(); void mounted();
void unmounted(bool idleTimeout); void unmounted(bool idleTimeout);
......
...@@ -127,7 +127,7 @@ bool SftpPlugin::mountAndWait() ...@@ -127,7 +127,7 @@ bool SftpPlugin::mountAndWait()
bool SftpPlugin::isMounted() bool SftpPlugin::isMounted()
{ {
return m_d->mounter; return m_d->mounter && m_d->mounter->isMounted();
} }
void SftpPlugin::startBrowsing() void SftpPlugin::startBrowsing()
...@@ -193,6 +193,8 @@ void SftpPlugin::onFailed(const QString& message) ...@@ -193,6 +193,8 @@ void SftpPlugin::onFailed(const QString& message)
, message , message
, KIconLoader::global()->loadIcon("dialog-error", KIconLoader::Desktop) , 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 void SftpPlugin::knotify(int type, const QString& text, const QPixmap& icon) const
......
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