diff --git a/src/project.cpp b/src/project.cpp index 11edbd9..09aacf7 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -151,9 +151,13 @@ void ProjectList::load(std::string file_name, bool ignore_worktimes){ inf.read((char*) &month_len,sizeof(size_t)); char *month_tmp = new char[month_len+1]; inf.read(month_tmp,month_len); - month_tmp[month_len] = '\0'; - month = month_tmp; - delete [] month_tmp; + if(!ignore_worktimes){ + month_tmp[month_len] = '\0'; + month = month_tmp; + delete [] month_tmp; + }else{ + month=get_date(); + } } inf.read((char*) &num_projects,sizeof(int)); diff --git a/src/tt.h b/src/tt.h index 1e1e1f2..90028e5 100644 --- a/src/tt.h +++ b/src/tt.h @@ -3,7 +3,7 @@ #include -#define TT_VERSION 1.2.0 +#define TT_VERSION 1.2.1 #define TT_IO_VERSION 120 // global variables: