Check-in Number:
|
3952 | |
Date: |
2003-Jan-27 15:43:44 (local)
2003-Jan-27 14:43:44 (UTC) |
User: | ms |
Branch: | |
Comment: |
Fixed a subtle bug in a split else block, and added code to append file
extension to new saves. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/as/as-gui/ChangeLog 1.13 -> 1.14
--- 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
|
|
ossp-pkg/as/as-gui/as_const.h 1.35 -> 1.36
--- 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?"
|
|
ossp-pkg/as/as-gui/as_slot.cpp 1.88 -> 1.89
--- 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
|
|