add filtermaxseconds to config

This commit is contained in:
dockes 2009-10-14 12:23:35 +00:00
parent 45f4acd152
commit 1d49117bcd
2 changed files with 16 additions and 0 deletions

View File

@ -388,6 +388,18 @@ ConfSubPanelW::ConfSubPanelW(QWidget *parent, ConfNull *config)
vboxLayout->addWidget(m_groupbox);
subDirChanged();
ConfLink lnkfiltmaxsecs(new ConfLinkRclRep(config, "filtermaxseconds"));
ConfParamIntW *efiltmaxsecs = new
ConfParamIntW(m_groupbox, lnkfiltmaxsecs,
tr("Max. filter exec. time (S)"),
tr("External filters working longer than this will be "
"aborted. This is for the rare case (ie: postscript) "
"where a document could cause a filter to loop"
"Set to -1 for no limit.\n"),
-1, 10000);
m_widgets.push_back(efiltmaxsecs);
}
void ConfSubPanelW::reloadAll()

View File

@ -113,6 +113,10 @@ textfilemaxmbs = -1
# piece into the preview window. Might be useful for big logs
textfilepagekbs = -1
# Maximum external filter execution time. Default 20mn. This is mainly
# to avoid infinite loops in postscript files (loop.ps)
filtermaxseconds = 1200
# Length of abstracts we store while indexing. Longer will make for a
# bigger db
# idxabsmlen = 250