| 879 | } |
| 880 | |
| 881 | QString CDatabaseFile::GetFile(const QString &szFile) |
| 882 | { |
| 883 | QFileInfo fi(szFile); |
| 884 | //qDebug(log) << szFile << fi.absolutePath(); |
| 885 | if(fi.isRelative()) { |
| 886 | return RabbitCommon::CDir::Instance()->GetDirUserData() |
| 887 | + QDir::separator() + szFile; |
| 888 | } |
| 889 | return szFile; |
| 890 | } |
| 891 | |
| 892 | QString CDatabaseFile::SetFile(const QString &file) |
| 893 | { |