fix:v1.3.1修复BUG。
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <filesystem>
|
||||
|
||||
@@ -13,7 +14,7 @@ void CGroupIni::default_set()
|
||||
QDir dir;
|
||||
std::string path = dir.homePath().toStdString();
|
||||
fs::path p(path);
|
||||
p.append(".config");
|
||||
p.append(".config/OneLevelXmlOpr");
|
||||
|
||||
if (!fs::exists(p)) {
|
||||
fs::create_directories(p);
|
||||
@@ -41,7 +42,7 @@ void CGroupIni::get_all_node(StrVec_t& vec)
|
||||
{
|
||||
vec.clear();
|
||||
|
||||
CSimpleIni::TNamesDepend secs;
|
||||
CSimpleIniA::TNamesDepend secs;
|
||||
ini_.GetAllSections(secs);
|
||||
for (const auto& sec : secs) {
|
||||
vec.push_back(sec.pItem);
|
||||
@@ -93,7 +94,7 @@ bool CGroupIni::get_item(OneGroupIni& group)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CGroupIni::del_item(const std::string &key)
|
||||
bool CGroupIni::del_item(const std::string& key)
|
||||
{
|
||||
ini_.Delete(key.c_str(), "MainNodes", true);
|
||||
ini_.Delete(key.c_str(), "RelativeNodes", true);
|
||||
|
||||
Reference in New Issue
Block a user