[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [digikam] libs/album: use for path compare startsWith()
From: Maik Qualmann <metzpinguin () gmail ! com>
Date: 2016-07-31 16:54:38
Message-ID: E1bTu0c-0000GG-Mv () code ! kde ! org
[Download RAW message or body]
Git commit e57d76fd198453d99a627573b46bc9d9624058ab by Maik Qualmann.
Committed on 31/07/2016 at 16:53.
Pushed by mqualmann into branch 'master'.
use for path compare startsWith()
M +1 -1 libs/album/albumwatch.cpp
http://commits.kde.org/digikam/e57d76fd198453d99a627573b46bc9d9624058ab
diff --git a/libs/album/albumwatch.cpp b/libs/album/albumwatch.cpp
index 187a77d..d4b3b15 100644
--- a/libs/album/albumwatch.cpp
+++ b/libs/album/albumwatch.cpp
@@ -189,7 +189,7 @@ void AlbumWatch::removeWatchedPAlbums(const PAlbum* con=
st album)
=
foreach(const QString& dir, d->dirWatch->directories())
{
- if (dir.contains(album->folderPath()))
+ if (dir.startsWith(album->folderPath()))
{
d->dirWatch->removePath(dir);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic