Skip to content

Commit

Permalink
libdeng2|Folder: Describe unnamed folders as "root folder"
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 2, 2014
1 parent 28382dc commit 7dc1a75
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doomsday/libdeng2/src/filesys/folder.cpp
Expand Up @@ -59,7 +59,15 @@ String Folder::describe() const
{
DENG2_GUARD(this);

String desc = String("folder \"%1\"").arg(name());
String desc;
if(name().isEmpty())
{
desc = "root folder";
}
else
{
desc = String("folder \"%1\"").arg(name());
}

String const feedDesc = describeFeeds();
if(!feedDesc.isEmpty())
Expand Down

0 comments on commit 7dc1a75

Please sign in to comment.