Unverified Commit befbe3d6 authored by Thomas Greenwood's avatar Thomas Greenwood
Browse files

Fix formatting using clang-format

parent 44d9b91d
......@@ -101,15 +101,15 @@ void NextcloudController::wrongUrlDetected()
// Open Webview for nextcloud login.
void NextcloudController::finalUrlHandler(const QUrl &url)
{
{
// url is of the form: nc://login/server:<server>&user:<loginname>&password:<password>
QUrlQuery urlQuery;
urlQuery.setQueryDelimiters(QLatin1Char(':'),QLatin1Char('&'));
urlQuery.setQueryDelimiters(QLatin1Char(':'), QLatin1Char('&'));
urlQuery.setQuery(url.path(QUrl::FullyEncoded).mid(1));
m_username = urlQuery.queryItemValue(QStringLiteral("user"),QUrl::FullyDecoded);
m_password = urlQuery.queryItemValue(QStringLiteral("password"),QUrl::FullyDecoded);
m_username = urlQuery.queryItemValue(QStringLiteral("user"), QUrl::FullyDecoded);
m_password = urlQuery.queryItemValue(QStringLiteral("password"), QUrl::FullyDecoded);
serverCheckResult();
}
......@@ -196,10 +196,10 @@ void NextcloudController::finish(const QStringList disabledServices)
data.insert(QStringLiteral("server"), m_server);
QUrl serverUrl(m_server);
QUrl carddavUrl(serverUrl.adjusted(QUrl::StripTrailingSlash));
carddavUrl.setPath(carddavUrl.path() + QStringLiteral("/remote.php/carddav/addressbooks/%1").arg(m_username));
QUrl webdavUrl(serverUrl.adjusted(QUrl::StripTrailingSlash));
webdavUrl.setPath(webdavUrl.path() + QStringLiteral("/remote.php/dav/files/%1").arg(m_username));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment