From 64d3223fb2d70f320913bbf0f61b95e2ddf6fe7e Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 19 Oct 2020 21:29:51 +0200 Subject: [PATCH] EntryProvider: saveUserEntry: Only save key field if it's not empty --- entryprovider.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entryprovider.cpp b/entryprovider.cpp index 6fef717..f91fbc9 100644 --- a/entryprovider.cpp +++ b/entryprovider.cpp @@ -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())