Fix build
This commit is contained in:
parent
504473b6fc
commit
a3017da2db
1 changed files with 9 additions and 8 deletions
|
@ -33,6 +33,7 @@
|
||||||
#include "../helper/filelauncher.h"
|
#include "../helper/filelauncher.h"
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
#include <QSet>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
@ -266,15 +267,15 @@ void FolderModel::setUrl(const QString &url)
|
||||||
emit urlChanged();
|
emit urlChanged();
|
||||||
emit resolvedUrlChanged();
|
emit resolvedUrlChanged();
|
||||||
|
|
||||||
if (m_dirWatch) {
|
// if (m_dirWatch) {
|
||||||
delete m_dirWatch;
|
// delete m_dirWatch;
|
||||||
m_dirWatch = nullptr;
|
// m_dirWatch = nullptr;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (resolvedNewUrl.isValid()) {
|
// if (resolvedNewUrl.isValid()) {
|
||||||
m_dirWatch = new KDirWatch(this);
|
// m_dirWatch = new KDirWatch(this);
|
||||||
m_dirWatch->addFile(resolvedNewUrl.toLocalFile() + QLatin1String("/.directory"));
|
// m_dirWatch->addFile(resolvedNewUrl.toLocalFile() + QLatin1String("/.directory"));
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
QUrl FolderModel::resolvedUrl() const
|
QUrl FolderModel::resolvedUrl() const
|
||||||
|
|
Loading…
Reference in a new issue