diff --git a/src/core/buffermgr.cpp b/src/core/buffermgr.cpp index fc687df2..48ac861a 100644 --- a/src/core/buffermgr.cpp +++ b/src/core/buffermgr.cpp @@ -86,18 +86,27 @@ void BufferMgr::open(const QString &p_filePath, const QSharedPointergetType() == Node::File) { + open(node.data(), p_paras); + return; + } else { + // Folder node. Currently just locate to it. + emit VNoteX::getInst().locateNodeRequested(node.data()); + return; + } + } + + if (finfo.isDir()) { + WidgetUtils::openUrlByDesktop(QUrl::fromLocalFile(p_filePath)); return; } diff --git a/src/core/configmgr.cpp b/src/core/configmgr.cpp index f042c3e1..1fcad027 100644 --- a/src/core/configmgr.cpp +++ b/src/core/configmgr.cpp @@ -24,7 +24,7 @@ using namespace vnotex; #ifndef QT_NO_DEBUG -#define VX_DEBUG_WEB +// #define VX_DEBUG_WEB #endif const QString ConfigMgr::c_orgName = "VNote";