EntryProvider: saveUserEntry: Only save key field if it's not empty

This commit is contained in:
Albert S. 2020-10-19 21:29:51 +02:00
父節點 adfb065358
當前提交 64d3223fb2
共有 1 個文件被更改,包括 4 次插入1 次删除

查看文件

@ -309,7 +309,10 @@ void EntryProvider::saveUserEntry(const EntryConfig &config)
outStream << "row" << " " << config.row << endl;
outStream << "col" << " " << config.col << endl;
outStream << "hidden" << " " << config.hidden << endl;
outStream << "key" << " " << config.key << endl;
if(!config.key.isEmpty())
{
outStream << "key" << " " << config.key << endl;
}
if(config.type == EntryType::USER)
{
if(!config.name.isEmpty())