In insert graphic window: canceling open dialog erases entry in text box). This bug is not Mac specific, but exist in Linux. (should exist in other OSes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18268
a592a061-630c-0410-9148-
cb99ea01b6c8
{
docstring const str =
form_->controller().browse(qstring_to_ucs4(filename->text()));
{
docstring const str =
form_->controller().browse(qstring_to_ucs4(filename->text()));
- filename->setText(toqstr(str));
- form_->changed();
+ if(!str.empty()){
+ filename->setText(toqstr(str));
+ form_->changed();
+ }