From 7e2db429886fc73af2d4d3573fec228e07e3fb59 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sat, 6 Jun 2015 09:10:57 +0200 Subject: [PATCH] Strip space chars from crontool entries. Fixes issue #253 --- src/qtgui/crontool.cpp | 6 +++--- src/qtgui/rclmain_w.cpp | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qtgui/crontool.cpp b/src/qtgui/crontool.cpp index cfb31b66..16903cc5 100644 --- a/src/qtgui/crontool.cpp +++ b/src/qtgui/crontool.cpp @@ -88,9 +88,9 @@ void CronToolW::changeCron(bool enable) editCrontab(marker, id, "", "", reason); accept(); } else { - string mins(qs2utf8s(minsLE->text())); - string hours(qs2utf8s(hoursLE->text())); - string days(qs2utf8s(daysLE->text())); + string mins(qs2utf8s(minsLE->text().remove(QChar(' ')))); + string hours(qs2utf8s(hoursLE->text().remove(QChar(' ')))); + string days(qs2utf8s(daysLE->text().remove(QChar(' ')))); string sched = mins + " " + hours + " * * " + days; if (editCrontab(marker, id, sched, cmd, reason)) { accept(); diff --git a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp index e2d87b5c..487cbbe3 100644 --- a/src/qtgui/rclmain_w.cpp +++ b/src/qtgui/rclmain_w.cpp @@ -1162,9 +1162,11 @@ void RclMain::showIndexSched(bool modal) this, SLOT(execRTITool())); #else indexSched->rtidxCLB->setEnabled(false); + indexSched->rtidxCLB->setToolTip(tr("Disabled because the real time indexer was not compiled in.")); #endif } else { indexSched->rtidxCLB->setEnabled(false); + indexSched->rtidxCLB->setToolTip(tr("This configuration tool only works for the main index.")); } } else { // Close and reopen, in hope that makes us visible...