Strip space chars from crontool entries. Fixes issue #253
This commit is contained in:
parent
11343b7aad
commit
5bb18dfc36
2 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue