r14765 by cbradney - Pass through compression flag to custom file dialog
scribus-commit
scribus-commit at lists.scribus.net
Thu Feb 18 23:50:20 CET 2010
Revision: 14765
Author: cbradney
Date: 2010-02-18T22:40:47.143313Z
Commit message: Pass through compression flag to custom file dialog
Changeset:
M /trunk/Scribus/scribus/scribus.cpp
Diffs:
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp (revision 14764)
+++ scribus/scribus.cpp (revision 14765)
@@ -4277,12 +4277,13 @@
fna = wdir;
fna += doc->DocName + ".sla";
}
- if (prefsManager->appPrefs.docSetupPrefs.saveCompressed)
+ bool saveCompressed=prefsManager->appPrefs.docSetupPrefs.saveCompressed;
+ if (saveCompressed)
fna.append(".gz");
+
QString fileSpec=tr("Documents (*.sla *.sla.gz);;All Files (*)");
-// bool setter=true;
int optionFlags = fdCompressFile | fdHidePreviewCheckBox;
- QString fn = CFileDialog( wdir, tr("Save As"), fileSpec, fna, optionFlags);
+ QString fn = CFileDialog( wdir, tr("Save As"), fileSpec, fna, optionFlags, &saveCompressed);
if (!fn.isEmpty())
{
docContext->set("save_as", fn.left(fn.lastIndexOf("/")));
@@ -8603,6 +8604,7 @@
dia->setExtension(f.completeSuffix());
dia->setZipExtension(f.completeSuffix() + ".gz");
dia->setSelection(defNa);
+ dia->SaveZip->setChecked(*docom);
}
if (optionFlags & fdDirectoriesOnly)
{
More information about the scribus-commit
mailing list