13
0

Show last modified in recent-list

This commit is contained in:
Robin Gareus 2017-01-21 00:48:47 +01:00
parent 2dc392b517
commit d4c48390cc

View File

@ -734,7 +734,7 @@ SessionDialog::redisplay_recent_sessions ()
float sr;
SampleFormat sf;
std::string created_version;
std::string program_version;
std::string state_file_basename;
@ -758,7 +758,7 @@ SessionDialog::redisplay_recent_sessions ()
row[recent_session_columns.fullpath] = s;
row[recent_session_columns.time_modified] = gsb.st_mtime;
if (Session::get_info_from_path (s, sr, sf, created_version) == 0) {
if (Session::get_info_from_path (s, sr, sf, program_version) == 0) {
row[recent_session_columns.sample_rate] = rate_as_string (sr);
switch (sf) {
case FormatFloat:
@ -776,10 +776,10 @@ SessionDialog::redisplay_recent_sessions ()
row[recent_session_columns.disk_format] = "--";
}
if (created_version.empty()) {
if (program_version.empty()) {
row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (dirname);
} else {
row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (dirname + "\n" + created_version);
row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (dirname + "\n" + string_compose (_("Last modified with: %1"), program_version));
}
++session_snapshot_count;
@ -800,10 +800,10 @@ SessionDialog::redisplay_recent_sessions ()
child_row[recent_session_columns.visible_name] = *i2;
child_row[recent_session_columns.fullpath] = s;
if (created_version.empty()) {
if (program_version.empty()) {
child_row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (dirname);
} else {
child_row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (dirname + "\n" + created_version);
child_row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (dirname + "\n" + string_compose (_("Last modified with: %1"), program_version));
}
g_stat (s.c_str(), &gsb);
child_row[recent_session_columns.time_modified] = gsb.st_mtime;
@ -815,7 +815,7 @@ SessionDialog::redisplay_recent_sessions ()
most_recent = gsb.st_mtime;
}
#if 0
if (Session::get_info_from_path (s, sr, sf, created_version) == 0) {
if (Session::get_info_from_path (s, sr, sf, program_version) == 0) {
child_row[recent_session_columns.sample_rate] = rate_as_string (sr);
switch (sf) {
case FormatFloat: