| 3862 | } |
| 3863 | |
| 3864 | QString WizDatabase::getDocumentLocation(const WIZDOCUMENTDATA& doc) |
| 3865 | { |
| 3866 | // WIZDOCUMENTDATA doc; |
| 3867 | // if (!DocumentFromGUID(doc.strGUID, doc)) |
| 3868 | // return QString(); |
| 3869 | |
| 3870 | if (!isGroup()) |
| 3871 | return doc.strLocation; |
| 3872 | |
| 3873 | CWizTagDataArray arrayTag; |
| 3874 | if (getDocumentTags(doc.strGUID, arrayTag)) |
| 3875 | { |
| 3876 | if (arrayTag.size() > 1) { |
| 3877 | TOLOG1("Group document should only have one tag: %1", doc.strTitle); |
| 3878 | } |
| 3879 | |
| 3880 | QString tagText; |
| 3881 | if (arrayTag.size()) { |
| 3882 | tagText = getTagTreeText(arrayTag[0].strGUID); |
| 3883 | } |
| 3884 | return "/" + name() + tagText + "/"; |
| 3885 | } |
| 3886 | |
| 3887 | return QString(); |
| 3888 | } |
| 3889 | |
| 3890 | bool WizDatabase::hasCert() |
| 3891 | { |
no test coverage detected