Subversion Repositories tpanel

Rev

Rev 21 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21 Rev 22
Line 17... Line 17...
17
 */
17
 */
18
 
18
 
19
#include <unistd.h>
19
#include <unistd.h>
20
#include "tsettings.h"
20
#include "tsettings.h"
21
#include "treadxml.h"
21
#include "treadxml.h"
-
 
22
#include "tconfig.h"
-
 
23
#include "ttpinit.h"
22
 
24
 
23
using std::string;
25
using std::string;
24
using std::vector;
26
using std::vector;
25
 
27
 
26
TSettings::TSettings(const string& path)
28
TSettings::TSettings(const string& path)
Line 42... Line 44...
42
    TError::clear();
44
    TError::clear();
43
    string fname = makeFileName(mPath, "prj.xma");
45
    string fname = makeFileName(mPath, "prj.xma");
44
 
46
 
45
    if (!isValidFile())
47
    if (!isValidFile())
46
    {
48
    {
-
 
49
        TTPInit init(TConfig::getProjectPath());
-
 
50
 
-
 
51
        if (!isValidFile())
-
 
52
        {
47
        MSG_ERROR("Error: File " << fname << " doesn't exist or can't be opened!");
53
            MSG_ERROR("Error: File " << fname << " doesn't exist or can't be opened!");
48
        TError::setError();
54
            TError::setError();
49
        return false;
55
            return false;
-
 
56
        }
50
    }
57
    }
51
 
58
 
52
    TReadXML txml(fname);
59
    TReadXML txml(fname);
53
 
60
 
54
    if (TError::isError())
61
    if (TError::isError())