diff options
author | Torgny Nyblom <kde@nyblom.org> | 2010-04-13 19:28:40 +0200 |
---|---|---|
committer | Torgny Nyblom <kde@nyblom.org> | 2010-04-13 19:28:40 +0200 |
commit | 437e0dbb1551dbce774a1c5036e17a8e30c8e699 (patch) | |
tree | c07ad867ea3a5e90170870bc977b8c614afcc3f2 /src/ruleparser.cpp | |
parent | 3bf4fcecd7f64cab1f700965816b5c1dbc8bdc39 (diff) | |
download | svn2git-437e0dbb1551dbce774a1c5036e17a8e30c8e699.tar svn2git-437e0dbb1551dbce774a1c5036e17a8e30c8e699.tar.gz svn2git-437e0dbb1551dbce774a1c5036e17a8e30c8e699.tar.bz2 svn2git-437e0dbb1551dbce774a1c5036e17a8e30c8e699.tar.xz svn2git-437e0dbb1551dbce774a1c5036e17a8e30c8e699.zip |
Fix logical error in last commit. There was no slash added between
prefix and path under certain conditions.
Diffstat (limited to 'src/ruleparser.cpp')
-rw-r--r-- | src/ruleparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp index 6e78efe..905115c 100644 --- a/src/ruleparser.cpp +++ b/src/ruleparser.cpp @@ -103,8 +103,8 @@ void Rules::load() match.prefix = matchPrefixLine.cap(1); if( match.prefix.startsWith('/')) match.prefix = match.prefix.mid(1); - if( match.prefix.endsWith('/')) - match.prefix.chop(1); + if( !match.prefix.endsWith('/')) + match.prefix.append('/'); continue; } else if (matchActionLine.exactMatch(line)) { QString action = matchActionLine.cap(1); |