mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Fix a crash in adv F&R when the a manual could not be loaded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40027 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
51790e6321
commit
2a9f282cc4
@ -305,6 +305,11 @@ bool FindAndReplaceWidget::findAndReplaceScope(FindAndReplaceOptions & opt, bool
|
|||||||
guiApp->currentView()->setBusy(true);
|
guiApp->currentView()->setBusy(true);
|
||||||
}
|
}
|
||||||
buf = theBufferList().getBuffer(fname);
|
buf = theBufferList().getBuffer(fname);
|
||||||
|
if (!buf) {
|
||||||
|
view_.setBusy(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
lyx::dispatch(FuncRequest(LFUN_BUFFER_SWITCH,
|
lyx::dispatch(FuncRequest(LFUN_BUFFER_SWITCH,
|
||||||
buf->absFileName()));
|
buf->absFileName()));
|
||||||
bv = view_.documentBufferView();
|
bv = view_.documentBufferView();
|
||||||
@ -327,7 +332,9 @@ bool FindAndReplaceWidget::findAndReplaceScope(FindAndReplaceOptions & opt, bool
|
|||||||
|
|
||||||
// No match found in current buffer (however old selection might have been replaced)
|
// No match found in current buffer (however old selection might have been replaced)
|
||||||
// select next buffer in scope, if any
|
// select next buffer in scope, if any
|
||||||
bool prompt = nextPrevBuffer(buf, opt);
|
bool const prompt = nextPrevBuffer(buf, opt);
|
||||||
|
if (!buf)
|
||||||
|
break;
|
||||||
if (prompt) {
|
if (prompt) {
|
||||||
if (wrap_answer != -1)
|
if (wrap_answer != -1)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user