Switch to unified view

a/src/qtgui/crontool.cpp b/src/qtgui/crontool.cpp
...
...
57
    }
57
    }
58
    
58
    
59
    string id = idstring(theconfig->getConfDir());
59
    string id = idstring(theconfig->getConfDir());
60
    vector<string> sched;
60
    vector<string> sched;
61
    if (getCrontabSched(marker, id, sched)) {
61
    if (getCrontabSched(marker, id, sched)) {
62
  minsLE->setText(QString::fromAscii(sched[0].c_str()));
62
        minsLE->setText(QString::fromUtf8(sched[0].c_str()));
63
  hoursLE->setText(QString::fromAscii(sched[1].c_str()));
63
        hoursLE->setText(QString::fromUtf8(sched[1].c_str()));
64
  daysLE->setText(QString::fromAscii(sched[4].c_str()));
64
        daysLE->setText(QString::fromUtf8(sched[4].c_str()));
65
    }
65
    }
66
}
66
}
67
67
68
void CronToolW::enableCron()
68
void CronToolW::enableCron()
69
{
69
{
...
...
86
86
87
    if (!enable) {
87
    if (!enable) {
88
    editCrontab(marker, id, "", "", reason);
88
    editCrontab(marker, id, "", "", reason);
89
    accept();
89
    accept();
90
    } else {
90
    } else {
91
  string mins((const char *)minsLE->text().toAscii());
91
        string mins(qs2utf8s(minsLE->text()));
92
  string hours((const char *)hoursLE->text().toAscii());
92
        string hours(qs2utf8s(hoursLE->text()));
93
  string days((const char *)daysLE->text().toAscii());
93
        string days(qs2utf8s(daysLE->text()));
94
    string sched = mins + " " + hours + "  * * " + days;
94
    string sched = mins + " " + hours + "  * * " + days;
95
    if (editCrontab(marker, id, sched, cmd, reason)) {
95
    if (editCrontab(marker, id, sched, cmd, reason)) {
96
        accept();
96
        accept();
97
    }  else {
97
    }  else {
98
        QMessageBox::warning(0, "Recoll", 
98
        QMessageBox::warning(0, "Recoll",