Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix typos in libs/macosutils Fixes user-facing and non-user-facing typos.

Kunda Ki9433fd47c8de
diff --git a/libs/macosutils/KisMacosSecurityBookmarkManager.h b/libs/macosutils/KisMacosSecurityBookmarkManager.h
index b5716701d3..3fd64200d5 100644
--- a/libs/macosutils/KisMacosSecurityBookmarkManager.h
+++ b/libs/macosutils/KisMacosSecurityBookmarkManager.h
@@ -30,7 +30,7 @@ public:
~KisMacosSecurityBookmarkManager();
/**
* @return Return true if file is contained within a directory with permissions
- * previouly granted by NSOpenPanel
+ * previously granted by NSOpenPanel
*
*/
bool parentDirHasPermissions(const QString &path);
@@ -39,7 +39,7 @@ public:
* Creates a bookmark security scope for diven path
* @param path File path returned from NSOpenPanel
* @param refpath If non empty creates the security key relative to the
- * reference path. This is useful for documents refering to other documents
+ * reference path. This is useful for documents referring to other documents
*/
void createBookmarkFromPath(const QString &path, const QString &refpath,SecurityBookmarkType type = SecurityBookmarkType::File);
diff --git a/libs/macosutils/KisMacosSecurityBookmarkManager.mm b/libs/macosutils/KisMacosSecurityBookmarkManager.mm
index ccb65bdf45..46e90b3ef0 100644
--- a/libs/macosutils/KisMacosSecurityBookmarkManager.mm
+++ b/libs/macosutils/KisMacosSecurityBookmarkManager.mm
@@ -190,7 +190,7 @@ bool KisMacosSecurityBookmarkManager::requestAccessToDir(const QString &path)
#ifdef KIS_STANDALONE
NSAlert *alert = [[NSAlert alloc] init];
[alert setAlertStyle:NSAlertStyleInformational];
- [alert setMessageText:[NSString stringWithFormat:@"The file %@ is located in a directory where the application has no permission, please give the permission to the container folder or a higher one to allow krita to save temporary bakcups next to your file", [nsStdPath lastPathComponent]]];
+ [alert setMessageText:[NSString stringWithFormat:@"The file %@ is located in a directory where the application has no permission, please give the permission to the container folder or a higher one to allow krita to save temporary backups next to your file", [nsStdPath lastPathComponent]]];
[alert runModal];
@@ -239,7 +239,7 @@ void KisMacosSecurityBookmarkManager::addBookmarkAndCheckParentDir(const QUrl &u
qDebug() << "1 inserting to sandbox" << url << path;
if (!parentDirHasPermissions(path)) {
// we can't force the user to select a directory in particular
- // we add the bookmark even if the file root directory was seleted
+ // we add the bookmark even if the file root directory was selected
createBookmarkFromPath(path, QString());
requestAccessToDir(path);