Fix confirm overwrite asked twice, from Bernhard

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16907 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-01-28 15:19:20 +00:00
parent f1168b16fc
commit 94408c72a7

View File

@ -91,6 +91,7 @@ FileDialog::Result const FileDialog::save(docstring const & path,
LyXFileDialog dlg(title_, path, filters, private_->b1, private_->b2); LyXFileDialog dlg(title_, path, filters, private_->b1, private_->b2);
dlg.setFileMode(QFileDialog::AnyFile); dlg.setFileMode(QFileDialog::AnyFile);
dlg.setAcceptMode(QFileDialog::AcceptSave); dlg.setAcceptMode(QFileDialog::AcceptSave);
dlg.setConfirmOverwrite(false);
if (!suggested.empty()) if (!suggested.empty())
dlg.selectFile(toqstr(suggested)); dlg.selectFile(toqstr(suggested));