extended the validation of the contents of the imported file (#670)
Extended the validation of the contents of the imported file
This commit is contained in:
parent
0a90fd110d
commit
c5a5bfde69
8 changed files with 109 additions and 58 deletions
|
|
@ -113,6 +113,11 @@ void SettingsController::restoreAppConfig(const QString &fileName)
|
|||
|
||||
QByteArray data = file.readAll();
|
||||
|
||||
restoreAppConfigFromData(data);
|
||||
}
|
||||
|
||||
void SettingsController::restoreAppConfigFromData(const QByteArray &data)
|
||||
{
|
||||
bool ok = m_settings->restoreAppConfig(data);
|
||||
if (ok) {
|
||||
m_serversModel->resetModel();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue