Commit 67e7b62d authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

Fix jpeg save quality

I got extremely bad quality when editing and saving JPEGs, and
apparently didn't it only not initialize the quality when saving it also
stored random garbage values in the config files, so they were preserved

So fetch the current value from config initially, and fetch it again
when calling save as, in case it changed. Still a bit broken, it won't
be reloaded if just saving and it is changed elsewhere, but this is the
minimal change that seems to fix the current implementation.

Reviewed By: ngraham

Differential Revision:
parent 435d2ad1
......@@ -70,7 +70,7 @@ struct GvCorePrivate
RecentFilesModel* mRecentFilesModel;
QPalette mPalettes[4];
QString mFullScreenPaletteName;
int configFileJPEGQualityValue;
int configFileJPEGQualityValue = GwenviewConfig::jPEGQuality();
bool showSaveAsDialog(const QUrl &url, QUrl* outUrl, QByteArray* format)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment