[katesessions runner] Fix unwanted creation of multiple KDirWatch'ers

parent 91586135
......@@ -61,7 +61,7 @@ void KateSessions::slotPrepare()
// listen for changes to the list of kate sessions
if (!m_sessionWatch) {
KDirWatch *m_sessionWatch = new KDirWatch(this);
m_sessionWatch = new KDirWatch(this);
m_sessionWatch->addDir(m_sessionsFolderPath);
connect(m_sessionWatch, &KDirWatch::dirty, this, &KateSessions::loadSessions);
connect(m_sessionWatch, &KDirWatch::created, this, &KateSessions::loadSessions);
......
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