From d9eab08fcb8bfc56470a7f418465607888b5f1ba Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 18 May 2012 19:39:03 +0200 Subject: 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 --- src/tests/testdir.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tests/testdir.cpp') 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 #endif -TestDir::TestDir() +TestDir::TestDir(const QString& directoryPrefix) : + KTempDir(directoryPrefix) { } -- cgit v1.3