mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
Fix bug #4510: GuiInclude->Edit marks master as changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29129 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
81f1aa7597
commit
0de1e7730f
@ -232,6 +232,10 @@ void GuiInclude::paramsToDialog(InsetCommandParams const & params_)
|
||||
string extra = getStringFromVector(pars);
|
||||
listingsED->setPlainText(toqstr(InsetListingsParams(extra).separatedParams()));
|
||||
}
|
||||
|
||||
// Make sure that the bc is in the INITIAL state
|
||||
if (bc().policy().buttonStatus(ButtonPolicy::OKAY))
|
||||
bc().restore();
|
||||
}
|
||||
|
||||
|
||||
@ -291,8 +295,11 @@ void GuiInclude::edit()
|
||||
if (!isValid())
|
||||
return;
|
||||
string const file = fromqstr(filenameED->text());
|
||||
slotOK();
|
||||
applyView();
|
||||
if (bc().policy().buttonStatus(ButtonPolicy::OKAY)) {
|
||||
slotOK();
|
||||
applyView();
|
||||
} else
|
||||
hideView();
|
||||
dispatch(FuncRequest(LFUN_INSET_EDIT));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user