[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdesdk/kbabel/catalogmanager
From: Stanislav Višňovský
Date: 2003-12-14 19:35:03
[Download RAW message or body]
CVS commit by nanulo:
Finally fix CVS add. Only add a directory if primary directory exists.
M +2 -2 catmanlistitem.cpp 1.26
M +2 -1 catmanlistitem.h 1.13
--- kdesdk/kbabel/catalogmanager/catmanlistitem.cpp #1.25:1.26
@@ -196,5 +196,5 @@ QStringList CatManListItem::allChildrenL
-QStringList CatManListItem::allChildrenFileList(bool onlyFiles) const
+QStringList CatManListItem::allChildrenFileList(bool onlyFiles, bool emptyDirs) const
{
QStringList childrenList;
@@ -209,5 +209,5 @@ QStringList CatManListItem::allChildrenF
else if(myChild->isDir())
{
- if(!onlyFiles)
+ if(!onlyFiles && (emptyDirs || myChild->_primary.exists() ))
{
childrenList.append(myChild->poFile());
--- kdesdk/kbabel/catalogmanager/catmanlistitem.h #1.12:1.13
@@ -73,7 +73,8 @@ public:
* (including all subdirectries)
* @param onlyFiles flag, if only the names of files should be returned
+ * @param emptyDirs flag, if the empty dirs (dirs without PO files in them) should be returned
* @see CatManListItem::contentsList
*/
- QStringList allChildrenFileList(bool onlyFiles=false) const;
+ QStringList allChildrenFileList(bool onlyFiles=false, bool emptyDirs=false) const;
void setMarked(bool on);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic