Index: ossp-pkg/as/as-gui/ChangeLog RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/ChangeLog,v rcsdiff -q -kk '-r1.13' '-r1.14' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/ChangeLog,v' 2>/dev/null --- ChangeLog 2003/01/27 13:34:05 1.13 +++ ChangeLog 2003/01/27 14:43:44 1.14 @@ -3,6 +3,8 @@ 030127 Changed date and time from ISO format to AS specific Added logic to dim and undim icons on (non)empty documents Improved intuitiveness of a newDoc operation by appending a default row + Fixed subtle unintentional split else codeblock in slot saveAs + Added automatic appending of AS event file extension to new docs 030124 Added CRC and basic revision management logic Removed sort on load to allow easier file diffs Index: ossp-pkg/as/as-gui/as_const.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_const.h,v rcsdiff -q -kk '-r1.35' '-r1.36' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_const.h,v' 2>/dev/null --- as_const.h 2003/01/27 12:39:18 1.35 +++ as_const.h 2003/01/27 14:43:44 1.36 @@ -134,6 +134,7 @@ #define TITRAQ_DATEZERO "0000-00-00" #define TITRAQ_SEPARATORTOK " " #define TITRAQ_HOMEDIRTOK "~/" +#define TITRAQ_FEXTENSION ".as" #define TITRAQ_SAVEFIRST "The timesheet contains unsaved changes\nDo you want to save the changes or discard them?" #define TITRAQ_OVERWRITE "A file already exists with the chosen name\nDo you want to overwrite it with new data?" Index: ossp-pkg/as/as-gui/as_slot.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v rcsdiff -q -kk '-r1.88' '-r1.89' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v' 2>/dev/null --- as_slot.cpp 2003/01/27 13:24:26 1.88 +++ as_slot.cpp 2003/01/27 14:43:44 1.89 @@ -432,9 +432,13 @@ break; } } - else + else { + QString Extension = TITRAQ_FEXTENSION; // Logic to handle + if (!Filestring.endsWith(Extension)) // AS file extension + Filestring += Extension; // insertion this->setFilename(Filestring); // Set filename of object first this->saveFile(); // Finish by calling the save action + } } else { // User did not select a valid file and push okay button