Fix bug 3377 by Ozgur Ugras BARAN:

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
This commit is contained in:
Abdelrazak Younes 2007-05-11 14:25:25 +00:00
parent b9765984c0
commit d5acfddef7

View File

@ -176,8 +176,10 @@ void QGraphicsDialog::on_browsePB_clicked()
{
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();
}
}