fix #38692 (unable to remove maildir folders with umlauts):

@@ -762,9 +762,9 @@ int KMFolderMaildir::removeContents()
 {
   // it would be nice if QDir could delete recursively.. but since it
   // doesn't, we have to do this hack
-  QString cmd;
+  QCString cmd;
   cmd.sprintf("rm -rf '%s'", QFile::encodeName(location()).data());
-  system(cmd.ascii());
+  system(cmd.data());

   return 0;
 }

svn path=/trunk/kdenetwork/kmail/; revision=141877
wilder-work
Marc Mutz 24 years ago
parent c01cb92257
commit f418b39b57
  1. 4
      kmfoldermaildir.cpp

@ -762,9 +762,9 @@ int KMFolderMaildir::removeContents()
{
// it would be nice if QDir could delete recursively.. but since it
// doesn't, we have to do this hack
QString cmd;
QCString cmd;
cmd.sprintf("rm -rf '%s'", QFile::encodeName(location()).data());
system(cmd.ascii());
system(cmd.data());
return 0;
}

Loading…
Cancel
Save