check for unmanaged lines in crontab

This commit is contained in:
Jean-Francois Dockes 2011-12-27 18:00:28 +01:00
parent 636b935904
commit c6c878bbba

View File

@ -20,6 +20,7 @@
#include <QPushButton>
#include <QMessageBox>
#include <QTimer>
#include "recoll.h"
#include "crontool.h"
@ -48,6 +49,13 @@ void CronToolW::init()
// Try to read the current values
if (!theconfig)
return;
if (checkCrontabUnmanaged(marker, "recollindex")) {
QMessageBox::warning(0, "Recoll",
tr("It seems that manually edited entries exist for recollindex, cannot edit crontab"));
QTimer::singleShot(0, this, SLOT(close()));
}
string id = idstring(theconfig->getConfDir());
vector<string> sched;
if (getCrontabSched(marker, id, sched)) {