>>>>> "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes:

http://bugzilla.lyx.org/show_bug.cgi?id=3818

Stefan> You make a patch?

OK. It turns out to be easier to disable overwrite control for the
native dialog.

Could some osx user test this patch?

JMarc

Index: src/frontends/qt4/FileDialog.cpp
===================================================================
--- src/frontends/qt4/FileDialog.cpp	(révision 18688)
+++ src/frontends/qt4/FileDialog.cpp	(copie de travail)
@@ -84,9 +84,14 @@ FileDialog::Result const FileDialog::sav
 #ifdef USE_NATIVE_FILEDIALOG
 	docstring const startsWith = from_utf8(
 		makeAbsPath(to_utf8(suggested), to_utf8(path)).absFilename());
-	result.second = from_utf8(internal_path(fromqstr(
+	QString const name = 
 		QFileDialog::getSaveFileName(qApp->focusWidget(),
-		toqstr(title_), toqstr(startsWith), toqstr(filters.as_string()) ))));
+					     toqstr(title_), 
+					     toqstr(startsWith), 
+					     toqstr(filters.as_string()),
+					     0, 
+					     QFileDialog::DontConfirmOverwrite);
+	result.second = from_utf8(internal_path(fromqstr(name)));
 #else
 	LyXFileDialog dlg(title_, path, filters, private_->b1, private_->b2);
 #if QT_VERSION != 0x040203

Reply via email to