r15230 by jghali - #9184: unnecessary preview option for text export

scribus-commit scribus-commit at lists.scribus.net
Sat Jun 19 02:30:26 CEST 2010


Revision: 15230
Author: jghali
Date: 2010-06-19T00:25:22.668685Z
Commit message: #9184: unnecessary preview option for text export

Changeset: 
M  /branches/Version135/Scribus/scribus/scribus.cpp
M  /branches/Version135/Scribus/scribus/storyeditor.cpp

Diffs:
Index: scribus/storyeditor.cpp
===================================================================
--- scribus/storyeditor.cpp	(revision 15229)
+++ scribus/storyeditor.cpp	(revision 15230)
@@ -3213,7 +3213,7 @@
 	QString fileName = "";
 	PrefsContext* dirs = prefsManager->prefsFile->getContext("dirs");
 	QString wdir = dirs->get("story_save", prefsManager->appPrefs.DocDir);
-	CustomFDialog dia(this, wdir, tr("Save as"), tr("Text Files (*.txt);;All Files(*)"), fdShowCodecs);
+	CustomFDialog dia(this, wdir, tr("Save as"), tr("Text Files (*.txt);;All Files(*)"), fdShowCodecs|fdHidePreviewCheckBox);
 	qApp->processEvents();
 	if (dia.exec() != QDialog::Accepted)
 	{
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp	(revision 15229)
+++ scribus/scribus.cpp	(revision 15230)
@@ -5507,7 +5507,7 @@
 		wdir = prefsManager->prefsFile->getContext("dirs")->get("save_text", prefsDocDir);
 	else
 		wdir = prefsManager->prefsFile->getContext("dirs")->get("save_text", ".");
-	QString fn = CFileDialog( wdir, tr("Save As"), tr("Text Files (*.txt);;All Files(*)"), "", fdShowCodecs);
+	QString fn = CFileDialog( wdir, tr("Save As"), tr("Text Files (*.txt);;All Files(*)"), "", fdShowCodecs|fdHidePreviewCheckBox);
 	if (!fn.isEmpty())
 	{
 		prefsManager->prefsFile->getContext("dirs")->set("save_text", fn.left(fn.lastIndexOf("/")));




More information about the scribus-commit mailing list