From: APTX Date: Sat, 15 Mar 2014 17:11:33 +0000 (+0100) Subject: Initialize ok and connected_ in all cases. X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=5152aa4cb76e909c414f1edcf483178a07a96d94;p=localmylist-runner.git Initialize ok and connected_ in all cases. --- diff --git a/main.cpp b/main.cpp index 6662c27..1437634 100644 --- a/main.cpp +++ b/main.cpp @@ -14,7 +14,7 @@ using namespace LocalMyList; class RaiiLml { public: - RaiiLml() : mutex{}, locker{&mutex} + RaiiLml() : mutex{}, locker{&mutex}, ok{true}, connected_{false} { if (MyList::instance()->thread() != QThread::currentThread()) { @@ -64,8 +64,6 @@ private: QString m_triggerWord; }; - - LocalMyListRunner::LocalMyListRunner(QObject *parent, const QVariantList &args) { Q_UNUSED(parent); @@ -85,7 +83,6 @@ void LocalMyListRunner::match(Plasma::RunnerContext &context) query.remove(0, m_triggerWord.length()); QString searchQuery = toSearchQuery(query); - qDebug("Initialize LML"); RaiiLml lml; if (!lml) return; @@ -168,7 +165,6 @@ void LocalMyListRunner::reloadConfiguration() i18n("Play the first unwatched episode of :q:")); setDefaultSyntax(syntax); - } void LocalMyListRunner::init()