r15231 by jghali - #9184: unnecessary preview option for text export
scribus-commit
scribus-commit at lists.scribus.net
Sat Jun 19 02:30:50 CEST 2010
Revision: 15231
Author: jghali
Date: 2010-06-19T00:26:26.480085Z
Commit message: #9184: unnecessary preview option for text export
Changeset:
M /trunk/Scribus/scribus/scribus.cpp
M /trunk/Scribus/scribus/ui/storyeditor.cpp
Diffs:
Index: scribus/ui/storyeditor.cpp
===================================================================
--- scribus/ui/storyeditor.cpp (revision 15230)
+++ scribus/ui/storyeditor.cpp (revision 15231)
@@ -3233,7 +3233,7 @@
QString fileName = "";
PrefsContext* dirs = prefsManager->prefsFile->getContext("dirs");
QString wdir = dirs->get("story_save", prefsManager->appPrefs.pathPrefs.documents);
- 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 15230)
+++ scribus/scribus.cpp (revision 15231)
@@ -5312,7 +5312,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