Strip space chars from crontool entries. Fixes issue #253

This commit is contained in:
Jean-Francois Dockes 2015-06-06 09:10:57 +02:00
parent 1a17578ebb
commit 7e2db42988
2 changed files with 5 additions and 3 deletions

View File

@ -88,9 +88,9 @@ void CronToolW::changeCron(bool enable)
editCrontab(marker, id, "", "", reason); editCrontab(marker, id, "", "", reason);
accept(); accept();
} else { } else {
string mins(qs2utf8s(minsLE->text())); string mins(qs2utf8s(minsLE->text().remove(QChar(' '))));
string hours(qs2utf8s(hoursLE->text())); string hours(qs2utf8s(hoursLE->text().remove(QChar(' '))));
string days(qs2utf8s(daysLE->text())); string days(qs2utf8s(daysLE->text().remove(QChar(' '))));
string sched = mins + " " + hours + " * * " + days; string sched = mins + " " + hours + " * * " + days;
if (editCrontab(marker, id, sched, cmd, reason)) { if (editCrontab(marker, id, sched, cmd, reason)) {
accept(); accept();

View File

@ -1162,9 +1162,11 @@ void RclMain::showIndexSched(bool modal)
this, SLOT(execRTITool())); this, SLOT(execRTITool()));
#else #else
indexSched->rtidxCLB->setEnabled(false); indexSched->rtidxCLB->setEnabled(false);
indexSched->rtidxCLB->setToolTip(tr("Disabled because the real time indexer was not compiled in."));
#endif #endif
} else { } else {
indexSched->rtidxCLB->setEnabled(false); indexSched->rtidxCLB->setEnabled(false);
indexSched->rtidxCLB->setToolTip(tr("This configuration tool only works for the main index."));
} }
} else { } else {
// Close and reopen, in hope that makes us visible... // Close and reopen, in hope that makes us visible...