Version handling in main window title, About window (now with tabs, including the license) and in PP3 files
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <glibmm.h>
|
||||
#include <sstream>
|
||||
#include <string.h>
|
||||
#include <version.h>
|
||||
|
||||
#include <safekeyfile.h>
|
||||
|
||||
@@ -221,14 +222,14 @@ raw.preser=0.0;
|
||||
exif.clear ();
|
||||
iptc.clear ();
|
||||
|
||||
version = 249;
|
||||
version = TAGDISTANCE;
|
||||
}
|
||||
|
||||
int ProcParams::save (Glib::ustring fname) const {
|
||||
|
||||
SafeKeyFile keyFile;
|
||||
|
||||
keyFile.set_integer ("Version", "Version", 20101019);
|
||||
keyFile.set_integer ("Version", "Version", TAGDISTANCE);
|
||||
|
||||
// save tonecurve:
|
||||
keyFile.set_boolean ("Exposure", "Auto", toneCurve.autoexp);
|
||||
@@ -492,7 +493,7 @@ int ProcParams::load (Glib::ustring fname) {
|
||||
|
||||
// load tonecurve:
|
||||
|
||||
version = 200;
|
||||
version = TAGDISTANCE;
|
||||
if (keyFile.has_group ("Version")) {
|
||||
if (keyFile.has_key ("Version", "Version")) version = keyFile.get_integer ("Version", "Version");
|
||||
}
|
||||
|
Reference in New Issue
Block a user