EntryProvider: Set entryPath also for system entries
这个提交包含在:
		| @@ -231,8 +231,8 @@ QVector<EntryConfig> EntryProvider::readConfig(QStringList paths, bool userentry | |||||||
| 					if(userentrymode) | 					if(userentrymode) | ||||||
| 					{ | 					{ | ||||||
| 						entry->userEntry = true; | 						entry->userEntry = true; | ||||||
| 						entry->entryPath = path; |  | ||||||
| 					} | 					} | ||||||
|  | 					entry->entryPath = path; | ||||||
| 					result.append(*entry); | 					result.append(*entry); | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| @@ -251,6 +251,14 @@ QVector<EntryConfig> EntryProvider::getSystemEntries() | |||||||
| 	return readConfig(this->systemEntriesDirsPaths); | 	return readConfig(this->systemEntriesDirsPaths); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | void EntryProvider::saveUserEntry(const EntryConfig &config) | ||||||
|  | { | ||||||
|  | 	if(!config.userEntry || config.entryPath.isEmpty()) | ||||||
|  | 	{ | ||||||
|  | 		throw std::runtime_error("Only user entries can be saved"); | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  |  | ||||||
| template <class T> void assignIfDestDefault(T &dest, const T &source) | template <class T> void assignIfDestDefault(T &dest, const T &source) | ||||||
| { | { | ||||||
| 	if(dest == T()) | 	if(dest == T()) | ||||||
|   | |||||||
		在新工单中引用
	
	屏蔽一个用户