"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/auto-login-service.cpp" between
seafile-client-7.0.4.tar.gz and seafile-client-7.0.5.tar.gz

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

auto-login-service.cpp  (seafile-client-7.0.4):auto-login-service.cpp  (seafile-client-7.0.5)
skipping to change at line 34 skipping to change at line 34
{ {
const Account account = seafApplet->accountManager()->currentAccount(); const Account account = seafApplet->accountManager()->currentAccount();
QUrl absolute_url = QUrl(next_url).isRelative() QUrl absolute_url = QUrl(next_url).isRelative()
? account.getAbsoluteUrl(next_url) ? account.getAbsoluteUrl(next_url)
: next_url; : next_url;
if (!account.isValid() || !account.isAtLeastVersion(4, 2, 0)) { if (!account.isValid() || !account.isAtLeastVersion(4, 2, 0)) {
QDesktopServices::openUrl(absolute_url); QDesktopServices::openUrl(absolute_url);
return; return;
} }
QString next = absolute_url.path(); absolute_url.setScheme("");
if (absolute_url.hasQuery()) { absolute_url.setHost("");
next += "?" + absolute_url.query(); QString next = absolute_url.toString().mid(2);
}
if (!absolute_url.fragment().isEmpty()) {
next += "#" + absolute_url.fragment();
}
GetLoginTokenRequest *req = new GetLoginTokenRequest(account, next); GetLoginTokenRequest *req = new GetLoginTokenRequest(account, next);
connect(req, SIGNAL(success(const QString&)), connect(req, SIGNAL(success(const QString&)),
this, SLOT(onGetLoginTokenSuccess(const QString&))); this, SLOT(onGetLoginTokenSuccess(const QString&)));
connect(req, SIGNAL(failed(const ApiError&)), connect(req, SIGNAL(failed(const ApiError&)),
this, SLOT(onGetLoginTokenFailed(const ApiError&))); this, SLOT(onGetLoginTokenFailed(const ApiError&)));
req->send(); req->send();
} }
 End of changes. 1 change blocks. 
7 lines changed or deleted 3 lines changed or added

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