summaryrefslogtreecommitdiffstats
path: root/libkdepim
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-05-14 02:06:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-05-14 02:06:47 +0000
commitacc2b77512ce0d8d708dda14dec1464f3eed830c (patch)
tree7917cc141e67ba40a4d4b06c752b66ede069b3da /libkdepim
parent54887c51b14c7707178d43d39413bf1bc7a17472 (diff)
downloadtdepim-acc2b77512ce0d8d708dda14dec1464f3eed830c.tar.gz
tdepim-acc2b77512ce0d8d708dda14dec1464f3eed830c.zip
Second batch of kdepim stability and functionality repairs
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1126473 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim')
-rw-r--r--libkdepim/kfileio.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libkdepim/kfileio.cpp b/libkdepim/kfileio.cpp
index 6aa30467b..f601bc6d6 100644
--- a/libkdepim/kfileio.cpp
+++ b/libkdepim/kfileio.cpp
@@ -302,12 +302,12 @@ QString checkAndCorrectPermissionsIfPossible( const QString &toCheck,
}
}
- // For each file or folder we can check if the file is readable
+ // For each file or folder we can check if the file is readable
// and writable, as requested.
if ( fiToCheck.isFile() || fiToCheck.isDir() ) {
if ( !fiToCheck.isReadable() && wantItReadable ) {
- // Get the current permissions. No need to do anything with an
+ // Get the current permissions. No need to do anything with an
// error, it will het added to errors anyhow, later on.
if ( stat(toCheckEnc,&statbuffer) != 0 ) {
kdDebug() << "wantItR: Can't read perms of " << toCheck << endl;
@@ -339,7 +339,7 @@ QString checkAndCorrectPermissionsIfPossible( const QString &toCheck,
}
}
- // If it is a folder and recursive is true, then we check the contents of
+ // If it is a folder and recursive is true, then we check the contents of
// the folder.
if ( fiToCheck.isDir() && recursive ){
QDir g(toCheck);
@@ -355,7 +355,7 @@ QString checkAndCorrectPermissionsIfPossible( const QString &toCheck,
QString newToCheck = toCheck + "/" + fi->fileName();
QFileInfo fiNewToCheck(newToCheck);
if ( fi->fileName() != "." && fi->fileName() != ".." ) {
- error.append ( checkAndCorrectPermissionsIfPossible( newToCheck,
+ error.append ( checkAndCorrectPermissionsIfPossible( newToCheck,
recursive, wantItReadable, wantItWritable) );
}
++it;
@@ -369,14 +369,14 @@ bool checkAndCorrectPermissionsIfPossibleWithErrorHandling( QWidget *parent,
const QString &toCheck, const bool recursive, const bool wantItReadable,
const bool wantItWritable )
{
- QString error = checkAndCorrectPermissionsIfPossible(toCheck, recursive,
+ QString error = checkAndCorrectPermissionsIfPossible(toCheck, recursive,
wantItReadable, wantItWritable);
- // There is no KMessageBox with Retry, Cancel and Details.
- // so, I can't provide a functionality to recheck. So it now
+ // There is no KMessageBox with Retry, Cancel and Details.
+ // so, I can't provide a functionality to recheck. So it now
// it is just a warning.
if ( !error.isEmpty() ) {
kdDebug() << "checkPermissions found:" << error << endl;
- KMessageBox::detailedSorry(parent,
+ KMessageBox::detailedSorry(parent,
i18n("Some files or folders do not have "
"the right permissions, please correct them "
"manually."),