Pass model test.
[dorian] / book.cpp
index 2aff091..bd96c45 100644 (file)
--- a/book.cpp
+++ b/book.cpp
@@ -304,3 +304,12 @@ QString Book::rootPath() const
 {
     return mRootPath;
 }
+
+QString Book::name() const
+{
+    if (title != "") {
+        return title;
+    } else {
+        return path();
+    }
+}