r14238 by fschmid - Fixed Bug #8545: "Remove the preview option from the load/save dialog for SCU curves"

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 27 11:30:17 CET 2009


Revision: 14238
Author: fschmid
Date: 2009-10-27T06:35:09.383981Z
Commit message: Fixed Bug #8545: "Remove the preview option from the load/save dialog for SCU curves"

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

Diffs:
Index: scribus/curvewidget.cpp
===================================================================
--- scribus/curvewidget.cpp	(revision 14237)
+++ scribus/curvewidget.cpp	(revision 14238)
@@ -412,7 +412,7 @@
 	QString fileName;
 	PrefsContext* dirs = PrefsManager::instance()->prefsFile->getContext("dirs");
 	QString wdir = dirs->get("curves", ".");
-	CustomFDialog dia(this, wdir, tr("Open"), tr("Curve Files (*.scu);;All Files (*)"));
+	CustomFDialog dia(this, wdir, tr("Open"), tr("Curve Files (*.scu *.SCU);;All Files (*)"), fdHidePreviewCheckBox | fdExistingFiles);
 	if (dia.exec() == QDialog::Accepted)
 		fileName = dia.selectedFile();
 	else
@@ -450,7 +450,7 @@
 {
 	QString fileName;
 	QString wdir = PrefsManager::instance()->prefsFile->getContext("dirs")->get("curves", ".");
-	CustomFDialog dia(this, wdir, tr("Save as"), tr("Curve Files (*.scu);;All Files (*)"), fdNone);
+	CustomFDialog dia(this, wdir, tr("Save as"), tr("Curve Files (*.scu *.scu);;All Files (*)"), fdNone);
 	if (dia.exec() == QDialog::Accepted)
 		fileName = dia.selectedFile();
 	else




More information about the scribus-commit mailing list