Il 05/01/2011 16:14, Vincent van Ravesteijn ha scritto:
void
FindAndReplaceWidget::findAndReplaceScope(FindAndReplaceOptions& opt)
{
- view_.setBusy(true);
- int wrap_answer = -1;
- ostringstream oss;
- oss<< opt;
- FuncRequest cmd(LFUN_WORD_FINDADV, from_utf8(oss.str()));
BufferView * bv = view_.documentBufferView();
+ if (!bv)
+ return;
We should be able to search in all manuals without a document open ?
ehm, I was expecting u'r question here: that's why I was saying "in
principle" ... I'll have to fix this
Also, we should not even be able to do a search on the current buffer
if there is no buffer. The find-replace-widget should disable the
corresponing buttons that allow to search the current buffer.
you mean, the enable state of the find next buttons should depend on the
selected scope ? Seems to make sense. Let me try.
T.