From c6c878bbba4314887bb3292f59b91413bec9d92d Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 27 Dec 2011 18:00:28 +0100 Subject: [PATCH] check for unmanaged lines in crontab --- src/qtgui/crontool.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/qtgui/crontool.cpp b/src/qtgui/crontool.cpp index e2285f4b..bde1d0a9 100644 --- a/src/qtgui/crontool.cpp +++ b/src/qtgui/crontool.cpp @@ -20,6 +20,7 @@ #include #include +#include #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 sched; if (getCrontabSched(marker, id, sched)) {