Switch to unified view

a/src/qtgui/crontool.cpp b/src/qtgui/crontool.cpp
...
...
18
18
19
#include <stdio.h>
19
#include <stdio.h>
20
20
21
#include <QPushButton>
21
#include <QPushButton>
22
#include <QMessageBox>
22
#include <QMessageBox>
23
#include <QTimer>
23
24
24
#include "recoll.h"
25
#include "recoll.h"
25
#include "crontool.h"
26
#include "crontool.h"
26
#include "ecrontab.h"
27
#include "ecrontab.h"
27
#include "smallut.h"
28
#include "smallut.h"
...
...
46
    connect(disableButton, SIGNAL(clicked()), this, SLOT(disableCron()));
47
    connect(disableButton, SIGNAL(clicked()), this, SLOT(disableCron()));
47
48
48
    // Try to read the current values
49
    // Try to read the current values
49
    if (!theconfig)
50
    if (!theconfig)
50
    return;
51
    return;
52
53
    if (checkCrontabUnmanaged(marker, "recollindex")) {
54
  QMessageBox::warning(0, "Recoll", 
55
               tr("It seems that manually edited entries exist for recollindex, cannot edit crontab"));
56
  QTimer::singleShot(0, this, SLOT(close()));
57
    }
58
    
51
    string id = idstring(theconfig->getConfDir());
59
    string id = idstring(theconfig->getConfDir());
52
    vector<string> sched;
60
    vector<string> sched;
53
    if (getCrontabSched(marker, id, sched)) {
61
    if (getCrontabSched(marker, id, sched)) {
54
    minsLE->setText(QString::fromAscii(sched[0].c_str()));
62
    minsLE->setText(QString::fromAscii(sched[0].c_str()));
55
    hoursLE->setText(QString::fromAscii(sched[1].c_str()));
63
    hoursLE->setText(QString::fromAscii(sched[1].c_str()));