mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
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:
parent
b9765984c0
commit
d5acfddef7
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user