Switch to unified view

a/src/qtgui/viewaction_w.cpp b/src/qtgui/viewaction_w.cpp
...
...
49
void ViewAction::fillLists()
49
void ViewAction::fillLists()
50
{
50
{
51
    actionsLV->clear();
51
    actionsLV->clear();
52
    actionsLV->verticalHeader()->setDefaultSectionSize(20); 
52
    actionsLV->verticalHeader()->setDefaultSectionSize(20); 
53
    vector<pair<string, string> > defs;
53
    vector<pair<string, string> > defs;
54
    rclconfig->getMimeViewerDefs(defs);
54
    theconfig->getMimeViewerDefs(defs);
55
    actionsLV->setRowCount(defs.size());
55
    actionsLV->setRowCount(defs.size());
56
    int row = 0;
56
    int row = 0;
57
    for (vector<pair<string, string> >::const_iterator it = defs.begin();
57
    for (vector<pair<string, string> >::const_iterator it = defs.begin();
58
     it != defs.end(); it++) {
58
     it != defs.end(); it++) {
59
    actionsLV->setItem(row, 0, 
59
    actionsLV->setItem(row, 0, 
...
...
126
    return;
126
    return;
127
127
128
    string sact = (const char *)newaction.toLocal8Bit();
128
    string sact = (const char *)newaction.toLocal8Bit();
129
    for (list<string>::const_iterator it = mtypes.begin(); 
129
    for (list<string>::const_iterator it = mtypes.begin(); 
130
     it != mtypes.end(); it++) {
130
     it != mtypes.end(); it++) {
131
    rclconfig->setMimeViewerDef(*it, sact);
131
    theconfig->setMimeViewerDef(*it, sact);
132
    }
132
    }
133
    fillLists();
133
    fillLists();
134
}
134
}