Switch to unified view

a/src/qtgui/idxthread.cpp b/src/qtgui/idxthread.cpp
...
...
39
    }
39
    }
40
}
40
}
41
41
42
static IdxThread idxthread;
42
static IdxThread idxthread;
43
43
44
void start_idxthread(RclConfig *cnf)
44
void start_idxthread(const RclConfig& cnf)
45
{
45
{
46
    // We have to make a copy of the config (setKeydir changes it during 
47
    // indexation)
48
    RclConfig *myconf = new RclConfig(cnf);
46
    ConfIndexer *ix = new ConfIndexer(cnf);
49
    ConfIndexer *ix = new ConfIndexer(myconf);
47
    idxthread.indexer = ix;
50
    idxthread.indexer = ix;
48
    idxthread.start();
51
    idxthread.start();
49
}
52
}
50
53
51
void stop_idxthread()
54
void stop_idxthread()
52
{
55
{
53
    stopidxthread = 1;
56
    stopidxthread = 1;
54
    idxthread.wait();
57
    idxthread.wait();
55
}
58
}
56
57