mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
bug-fix: user could not choose an existing empty folder as the root folder
This commit is contained in:
parent
748dc36cac
commit
0369848943
@ -171,7 +171,9 @@ void VNewNotebookDialog::handleInputChanged()
|
||||
if (QFileInfo::exists(path)) {
|
||||
QDir dir(path);
|
||||
QStringList files = dir.entryList(QDir::NoDotAndDotDot | QDir::AllEntries | QDir::Hidden);
|
||||
if (!files.isEmpty()) {
|
||||
if (files.isEmpty()) {
|
||||
pathOk = true;
|
||||
} else {
|
||||
// Folder is not empty.
|
||||
configExist = VConfigManager::directoryConfigExist(path);
|
||||
showWarnLabel = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user