--it;
}
FileName const & fname = FileName(*it);
- if (!theBufferList().exists(fname))
+ if (!theBufferList().exists(fname)) {
+ guiApp->currentView()->setBusy(false);
guiApp->currentView()->loadDocument(fname, false);
+ guiApp->currentView()->setBusy(true);
+ }
buf = theBufferList().getBuffer(fname);
break;
}
vector<string> const & v = allManualsFiles();
if (std::find(v.begin(), v.end(), buf->absFileName()) == v.end()) {
FileName const & fname = FileName(*v.begin());
- if (!theBufferList().exists(fname))
+ if (!theBufferList().exists(fname)) {
+ guiApp->currentView()->setBusy(false);
guiApp->currentView()->loadDocument(fname, false);
+ guiApp->currentView()->setBusy(true);
+ }
buf = theBufferList().getBuffer(fname);
lyx::dispatch(FuncRequest(LFUN_BUFFER_SWITCH,
buf->absFileName()));
<< ", scope=" << scope);
FindAndReplaceOptions opt(searchString, casesensitive, matchword, ! backwards,
expandmacros, ignoreformat, regexp, replaceString, keep_case, scope);
+ view_.setBusy(true);
findAndReplaceScope(opt);
+ view_.setBusy(false);
}