"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ui/account-settings-dialog.cpp" between
seafile-client-7.0.3.tar.gz and seafile-client-7.0.4.tar.gz

About: Seafile (client) for the Seafile cloud storage system.

account-settings-dialog.cpp  (seafile-client-7.0.3):account-settings-dialog.cpp  (seafile-client-7.0.4)
skipping to change at line 89 skipping to change at line 89
Account new_account(account_); Account new_account(account_);
new_account.serverUrl = url; new_account.serverUrl = url;
if (seafApplet->accountManager()->replaceAccount(account_, if (seafApplet->accountManager()->replaceAccount(account_,
new_account) < 0) { new_account) < 0) {
showWarning(tr("Failed to save account information")); showWarning(tr("Failed to save account information"));
return; return;
} }
QString error; QString error;
QUrl new_server_url = new_account.serverUrl; QUrl new_server_url = new_account.serverUrl;
new_server_url.setPath("/"); new_server_url.setPath("/");
if (seafApplet->rpcClient()->updateReposServerHost(account_.serverUrl.ho
st(), QUrl url = account_.serverUrl;
url.setPath("/");
if (seafApplet->rpcClient()->updateReposServerHost(url,
new_account.serverUrl.host(), new_server_url.toString(), &error) < 0 ) { new_account.serverUrl.host(), new_server_url.toString(), &error) < 0 ) {
showWarning(tr("Failed to save the changes: %1").arg(error)); showWarning(tr("Failed to save the changes: %1").arg(error));
return; return;
} }
} }
seafApplet->messageBox(tr("Successfully updated current account information" ), this); seafApplet->messageBox(tr("Successfully updated current account information" ), this);
accept(); accept();
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)