mirror of https://github.com/nextcloud/desktop
Fix new typos found by codespell
Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
This commit is contained in:
parent
2b4ad12b78
commit
8a73a9a6f5
|
@ -126,7 +126,7 @@ Network
|
||||||
|
|
||||||
.. index:: proxy settings, SOCKS, bandwidth, throttling, limiting
|
.. index:: proxy settings, SOCKS, bandwidth, throttling, limiting
|
||||||
|
|
||||||
This tab consolidates ``Proxy Settings`` and ``Bandwith Limiting``:
|
This tab consolidates ``Proxy Settings`` and ``Bandwidth Limiting``:
|
||||||
|
|
||||||
.. image:: images/settings_network.png
|
.. image:: images/settings_network.png
|
||||||
:scale: 50 %
|
:scale: 50 %
|
||||||
|
|
|
@ -343,7 +343,7 @@
|
||||||
|
|
||||||
// Add NULL terminator, so we can use C string methods
|
// Add NULL terminator, so we can use C string methods
|
||||||
if (firstSeparatorIndex.location == NSNotFound) {
|
if (firstSeparatorIndex.location == NSNotFound) {
|
||||||
NSLog(@"No separator found. Creating new buffer qith space for null terminator.");
|
NSLog(@"No separator found. Creating new buffer with space for null terminator.");
|
||||||
|
|
||||||
[_inBuffer appendBytes:terminator length:1];
|
[_inBuffer appendBytes:terminator length:1];
|
||||||
nullTerminatorIndex = inBufferLength;
|
nullTerminatorIndex = inBufferLength;
|
||||||
|
|
|
@ -78,7 +78,7 @@ enum class PinState {
|
||||||
|
|
||||||
/** The file will never be synced to the cloud.
|
/** The file will never be synced to the cloud.
|
||||||
*
|
*
|
||||||
* Usefull for ignored files to indicate to the OS the file will never be
|
* Useful for ignored files to indicate to the OS the file will never be
|
||||||
* synced
|
* synced
|
||||||
*/
|
*/
|
||||||
Excluded = 4,
|
Excluded = 4,
|
||||||
|
|
|
@ -567,10 +567,10 @@ void AccountState::slotCheckServerAvailibility()
|
||||||
|| state() == AccountState::SignedOut
|
|| state() == AccountState::SignedOut
|
||||||
|| state() == AccountState::MaintenanceMode
|
|| state() == AccountState::MaintenanceMode
|
||||||
|| state() == AccountState::AskingCredentials) {
|
|| state() == AccountState::AskingCredentials) {
|
||||||
qCInfo(lcAccountState) << "Skipping server availibility check for account" << _account->davUser() << "with state" << state();
|
qCInfo(lcAccountState) << "Skipping server availability check for account" << _account->davUser() << "with state" << state();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
qCInfo(lcAccountState) << "Checking server availibility for account" << _account->davUser();
|
qCInfo(lcAccountState) << "Checking server availability for account" << _account->davUser();
|
||||||
const auto serverAvailibilityUrl = Utility::concatUrlPath(_account->url(), QLatin1String("/index.php/204"));
|
const auto serverAvailibilityUrl = Utility::concatUrlPath(_account->url(), QLatin1String("/index.php/204"));
|
||||||
auto checkServerAvailibilityJob = _account->sendRequest(QByteArrayLiteral("GET"), serverAvailibilityUrl);
|
auto checkServerAvailibilityJob = _account->sendRequest(QByteArrayLiteral("GET"), serverAvailibilityUrl);
|
||||||
connect(checkServerAvailibilityJob, &SimpleNetworkJob::finishedSignal, this, [this](QNetworkReply *reply) {
|
connect(checkServerAvailibilityJob, &SimpleNetworkJob::finishedSignal, this, [this](QNetworkReply *reply) {
|
||||||
|
|
|
@ -568,7 +568,7 @@ void FolderMan::setupFolderFromOldConfigFile(const QString &fileNamePath, Accoun
|
||||||
auto legacyBlacklist = folder->journalDb()->getSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList,
|
auto legacyBlacklist = folder->journalDb()->getSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList,
|
||||||
&ok);
|
&ok);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
qCInfo(lcFolderMan) << "There was a problem retriving the database selective sync for " << folder;
|
qCInfo(lcFolderMan) << "There was a problem retrieving the database selective sync for " << folder;
|
||||||
}
|
}
|
||||||
|
|
||||||
legacyBlacklist << settings.value(QLatin1String("blackList")).toStringList();
|
legacyBlacklist << settings.value(QLatin1String("blackList")).toStringList();
|
||||||
|
|
|
@ -878,7 +878,7 @@ QStringList FolderStatusModel::createBlackList(const FolderStatusModel::SubFolde
|
||||||
result += createBlackList(root._subs.at(i), oldBlackList);
|
result += createBlackList(root._subs.at(i), oldBlackList);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// We did not load from the server so we re-use the one from the old black list
|
// We did not load from the server so we reuse the one from the old black list
|
||||||
const QString path = root._path;
|
const QString path = root._path;
|
||||||
foreach (const QString &it, oldBlackList) {
|
foreach (const QString &it, oldBlackList) {
|
||||||
if (it.startsWith(path))
|
if (it.startsWith(path))
|
||||||
|
|
|
@ -150,7 +150,7 @@ private:
|
||||||
|
|
||||||
QString findMatchingUnlockedFileInDir(const QString &dirPath, const QString &lockFileName);
|
QString findMatchingUnlockedFileInDir(const QString &dirPath, const QString &lockFileName);
|
||||||
|
|
||||||
/* Check if the path should be igored by the FolderWatcher. */
|
/* Check if the path should be ignored by the FolderWatcher. */
|
||||||
[[nodiscard]] bool pathIsIgnored(const QString &path) const;
|
[[nodiscard]] bool pathIsIgnored(const QString &path) const;
|
||||||
|
|
||||||
/** Path of the expected test notification */
|
/** Path of the expected test notification */
|
||||||
|
|
|
@ -425,7 +425,7 @@ QStringList SelectiveSyncWidget::createBlackList(QTreeWidgetItem *root) const
|
||||||
result += createBlackList(root->child(i));
|
result += createBlackList(root->child(i));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// We did not load from the server so we re-use the one from the old black list
|
// We did not load from the server so we reuse the one from the old black list
|
||||||
QString path = root->data(0, Qt::UserRole).toString();
|
QString path = root->data(0, Qt::UserRole).toString();
|
||||||
foreach (const QString &it, _oldBlackList) {
|
foreach (const QString &it, _oldBlackList) {
|
||||||
if (it.startsWith(path))
|
if (it.startsWith(path))
|
||||||
|
|
|
@ -464,7 +464,7 @@ QSslConfiguration Account::getOrCreateSslConfig()
|
||||||
// "An internal error number 1060 happened. SSL handshake failed, client certificate was requested: SSL error: sslv3 alert handshake failure"
|
// "An internal error number 1060 happened. SSL handshake failed, client certificate was requested: SSL error: sslv3 alert handshake failure"
|
||||||
QSslConfiguration sslConfig = QSslConfiguration::defaultConfiguration();
|
QSslConfiguration sslConfig = QSslConfiguration::defaultConfiguration();
|
||||||
|
|
||||||
// Try hard to re-use session for different requests
|
// Try hard to reuse session for different requests
|
||||||
sslConfig.setSslOption(QSsl::SslOptionDisableSessionTickets, false);
|
sslConfig.setSslOption(QSsl::SslOptionDisableSessionTickets, false);
|
||||||
sslConfig.setSslOption(QSsl::SslOptionDisableSessionSharing, false);
|
sslConfig.setSslOption(QSsl::SslOptionDisableSessionSharing, false);
|
||||||
sslConfig.setSslOption(QSsl::SslOptionDisableSessionPersistence, false);
|
sslConfig.setSslOption(QSsl::SslOptionDisableSessionPersistence, false);
|
||||||
|
|
|
@ -97,7 +97,7 @@ public:
|
||||||
QString fetchUser();
|
QString fetchUser();
|
||||||
virtual bool sslIsTrusted() { return false; }
|
virtual bool sslIsTrusted() { return false; }
|
||||||
|
|
||||||
/* If we still have a valid refresh token, try to refresh it assynchronously and emit fetched()
|
/* If we still have a valid refresh token, try to refresh it asynchronously and emit fetched()
|
||||||
* otherwise return false
|
* otherwise return false
|
||||||
*/
|
*/
|
||||||
bool refreshAccessToken();
|
bool refreshAccessToken();
|
||||||
|
|
|
@ -457,7 +457,7 @@ public:
|
||||||
/** The list of currently active jobs.
|
/** The list of currently active jobs.
|
||||||
This list contains the jobs that are currently using resources and is used purely to
|
This list contains the jobs that are currently using resources and is used purely to
|
||||||
know how many jobs there is currently running for the scheduler.
|
know how many jobs there is currently running for the scheduler.
|
||||||
Jobs add themself to the list when they do an assynchronous operation.
|
Jobs add themself to the list when they do an asynchronous operation.
|
||||||
Jobs can be several time on the list (example, when several chunks are uploaded in parallel)
|
Jobs can be several time on the list (example, when several chunks are uploaded in parallel)
|
||||||
*/
|
*/
|
||||||
QList<PropagateItemJob *> _activeJobList;
|
QList<PropagateItemJob *> _activeJobList;
|
||||||
|
|
|
@ -34,7 +34,7 @@ static void check_c_jhash_trials(void **state)
|
||||||
z=0;
|
z=0;
|
||||||
for (i=0; i<hlen; ++i) { /*----------------------- for each input byte, */
|
for (i=0; i<hlen; ++i) { /*----------------------- for each input byte, */
|
||||||
for (j=0; j<8; ++j) { /*------------------------ for each input bit, */
|
for (j=0; j<8; ++j) { /*------------------------ for each input bit, */
|
||||||
for (m=1; m<8; ++m) { /*------------ for serveral possible initvals, */
|
for (m=1; m<8; ++m) { /*------------ for several possible initvals, */
|
||||||
for (l=0; l<HASHSTATE; ++l) e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0);
|
for (l=0; l<HASHSTATE; ++l) e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0);
|
||||||
|
|
||||||
/*---- check that every output bit is affected by that input bit */
|
/*---- check that every output bit is affected by that input bit */
|
||||||
|
@ -168,7 +168,7 @@ static void check_c_jhash64_trials(void **state)
|
||||||
z=0;
|
z=0;
|
||||||
for (i=0; i<hlen; ++i) { /*----------------------- for each byte, */
|
for (i=0; i<hlen; ++i) { /*----------------------- for each byte, */
|
||||||
for (j=0; j<8; ++j) { /*------------------------ for each bit, */
|
for (j=0; j<8; ++j) { /*------------------------ for each bit, */
|
||||||
for (m=0; m<8; ++m) { /*-------- for serveral possible levels, */
|
for (m=0; m<8; ++m) { /*-------- for several possible levels, */
|
||||||
for (l=0; l<HASHSTATE; ++l) e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint64_t)0);
|
for (l=0; l<HASHSTATE; ++l) e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint64_t)0);
|
||||||
|
|
||||||
/*---- check that every input bit affects every output bit */
|
/*---- check that every input bit affects every output bit */
|
||||||
|
|
|
@ -156,7 +156,7 @@ private slots:
|
||||||
QCOMPARE(sourceModel->rowCount(), sourceModel->maxPossibleActivities());
|
QCOMPARE(sourceModel->rowCount(), sourceModel->maxPossibleActivities());
|
||||||
|
|
||||||
auto errorSyncFileItemActivity = exampleSyncFileItemActivity(accountState->account()->displayName(), {});
|
auto errorSyncFileItemActivity = exampleSyncFileItemActivity(accountState->account()->displayName(), {});
|
||||||
errorSyncFileItemActivity._message = QStringLiteral("Something went wrong and eveything exploded!");
|
errorSyncFileItemActivity._message = QStringLiteral("Something went wrong and everything exploded!");
|
||||||
errorSyncFileItemActivity._syncFileItemStatus = OCC::SyncFileItem::FatalError;
|
errorSyncFileItemActivity._syncFileItemStatus = OCC::SyncFileItem::FatalError;
|
||||||
|
|
||||||
addActivity(model, &TestingALM::addSyncFileItemToActivityList, errorSyncFileItemActivity);
|
addActivity(model, &TestingALM::addSyncFileItemToActivityList, errorSyncFileItemActivity);
|
||||||
|
|
|
@ -1361,7 +1361,7 @@ private slots:
|
||||||
FakeFolder fakeFolder{FileInfo{}};
|
FakeFolder fakeFolder{FileInfo{}};
|
||||||
auto vfs = setupVfs(fakeFolder);
|
auto vfs = setupVfs(fakeFolder);
|
||||||
|
|
||||||
// Create a Windows shotcut (.lnk) file
|
// Create a Windows shortcut (.lnk) file
|
||||||
fakeFolder.remoteModifier().insert("linkfile.lnk");
|
fakeFolder.remoteModifier().insert("linkfile.lnk");
|
||||||
|
|
||||||
QVERIFY(fakeFolder.syncOnce());
|
QVERIFY(fakeFolder.syncOnce());
|
||||||
|
|
|
@ -1671,7 +1671,7 @@ private slots:
|
||||||
fakeFolder.remoteModifier().insert(testUpperCaseFile);
|
fakeFolder.remoteModifier().insert(testUpperCaseFile);
|
||||||
QVERIFY(fakeFolder.syncOnce());
|
QVERIFY(fakeFolder.syncOnce());
|
||||||
|
|
||||||
// we must get conflits
|
// we must get conflicts
|
||||||
conflicts = findCaseClashConflicts(fakeFolder.currentLocalState());
|
conflicts = findCaseClashConflicts(fakeFolder.currentLocalState());
|
||||||
QCOMPARE(conflicts.size(), shouldHaveCaseClashConflict ? 1 : 0);
|
QCOMPARE(conflicts.size(), shouldHaveCaseClashConflict ? 1 : 0);
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ public:
|
||||||
QString _id;
|
QString _id;
|
||||||
QString _name;
|
QString _name;
|
||||||
qint32 _order = std::numeric_limits<qint32>::max();
|
qint32 _order = std::numeric_limits<qint32>::max();
|
||||||
quint32 _numItemsToInsert = 5; // how many fake resuls to insert
|
quint32 _numItemsToInsert = 5; // how many fake results to insert
|
||||||
};
|
};
|
||||||
|
|
||||||
// this will be used when initializing fake search results data for each provider
|
// this will be used when initializing fake search results data for each provider
|
||||||
|
|
Loading…
Reference in New Issue