┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/testdir.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-05-18 19:39:03 +0200
committerPeter Penz <[email protected]>2012-05-18 19:43:17 +0200
commitd9eab08fcb8bfc56470a7f418465607888b5f1ba (patch)
tree9985d8d55e59e5f44a50bf1bdee0d7e98bc12d78 /src/tests/testdir.cpp
parenta6241cf8ea41c28be0f10318704f70b89336f675 (diff)
Don't create a .directory-file for each directory
This regression has been introduced on master and has not been released yet: Due to the changed properties-format an update has been done which resulted in writing a .directory file into each newly entered directory. The patch updates the view-properties and version only in the constructor so that it is assured that reading properties never accidently will change the internal version. A unit-test has been added to catch regressions like this in future. BUG: 300240 FIXED-IN: 4.9.0
Diffstat (limited to 'src/tests/testdir.cpp')
-rw-r--r--src/tests/testdir.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/testdir.cpp b/src/tests/testdir.cpp
index a7f3cd4dc..8938e6082 100644
--- a/src/tests/testdir.cpp
+++ b/src/tests/testdir.cpp
@@ -27,7 +27,8 @@
#include <sys/utime.h>
#endif
-TestDir::TestDir()
+TestDir::TestDir(const QString& directoryPrefix) :
+ KTempDir(directoryPrefix)
{
}