Strip space chars from crontool entries. Fixes issue #253
This commit is contained in:
parent
1a17578ebb
commit
7e2db42988
@ -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();
|
||||
|
||||
@ -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...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user