EntryProvider: saveUserEntry: Only save key field if it's not empty
This commit is contained in:
parent
adfb065358
commit
64d3223fb2
@ -309,7 +309,10 @@ void EntryProvider::saveUserEntry(const EntryConfig &config)
|
|||||||
outStream << "row" << " " << config.row << endl;
|
outStream << "row" << " " << config.row << endl;
|
||||||
outStream << "col" << " " << config.col << endl;
|
outStream << "col" << " " << config.col << endl;
|
||||||
outStream << "hidden" << " " << config.hidden << 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.type == EntryType::USER)
|
||||||
{
|
{
|
||||||
if(!config.name.isEmpty())
|
if(!config.name.isEmpty())
|
||||||
|
Loading…
Reference in New Issue
Block a user