All pastes #759347 Raw Edit

Untitled

public text v1 · immutable
·published 2007-11-03 01:35 UTC
rendered paste body
--- package.cpp (revision 732162)
+++ package.cpp (working copy)
@@ -76,14 +76,14 @@
     }

     foreach (const char *dir, d->structure.requiredDirectories()) {
-        if (QFile::exists(d->basePath + '/' + d->structure.path(dir))) {
+        if (!QFile::exists(d->basePath + d->structure.path(dir))) {
             d->valid = false;
             return false;
         }
     }

     foreach (const char *file, d->structure.requiredFiles()) {
-        if (QFile::exists(d->basePath + '/' + d->structure.path(file))) {
+        if (!QFile::exists(d->basePath + d->structure.path(file))) {
             d->valid = false;
             return false;
         }