From a3017da2db3bdb450b5f4d3860b1c43ce32607a0 Mon Sep 17 00:00:00 2001 From: reionwong Date: Wed, 1 Sep 2021 21:13:47 +0800 Subject: [PATCH] Fix build --- model/foldermodel.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/model/foldermodel.cpp b/model/foldermodel.cpp index 958898b..fd4743e 100644 --- a/model/foldermodel.cpp +++ b/model/foldermodel.cpp @@ -33,6 +33,7 @@ #include "../helper/filelauncher.h" // Qt +#include #include #include #include @@ -266,15 +267,15 @@ void FolderModel::setUrl(const QString &url) emit urlChanged(); emit resolvedUrlChanged(); - if (m_dirWatch) { - delete m_dirWatch; - m_dirWatch = nullptr; - } +// if (m_dirWatch) { +// delete m_dirWatch; +// m_dirWatch = nullptr; +// } - if (resolvedNewUrl.isValid()) { - m_dirWatch = new KDirWatch(this); - m_dirWatch->addFile(resolvedNewUrl.toLocalFile() + QLatin1String("/.directory")); - } +// if (resolvedNewUrl.isValid()) { +// m_dirWatch = new KDirWatch(this); +// m_dirWatch->addFile(resolvedNewUrl.toLocalFile() + QLatin1String("/.directory")); +// } } QUrl FolderModel::resolvedUrl() const