summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-12-08 20:33:04 +0100
committerRobin Gareus <robin@gareus.org>2016-12-08 20:33:26 +0100
commite97404c5de8f55c0a0e763f941c31af657a6a269 (patch)
treea8acff8fd0957252f01fbbe8ff4e26e1583b707a
parent61693a318a2a7f3e5e633064925dc01e9f0df175 (diff)
Speed up recent-session display with lots of snapshots.libcanvas-no-gtk
Given that a session can easily have >100 snapshots and one cannot change the sample-rate anymore, it's mostly useless to parse them all.
-rw-r--r--gtk2_ardour/session_dialog.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc
index f94074f718..279ff52dee 100644
--- a/gtk2_ardour/session_dialog.cc
+++ b/gtk2_ardour/session_dialog.cc
@@ -798,7 +798,7 @@ SessionDialog::redisplay_recent_sessions ()
if (gsb.st_mtime > most_recent) {
most_recent = gsb.st_mtime;
}
-
+#if 0
if (Session::get_info_from_path (s, sr, sf) == 0) {
child_row[recent_session_columns.sample_rate] = rate_as_string (sr);
switch (sf) {
@@ -816,6 +816,10 @@ SessionDialog::redisplay_recent_sessions ()
child_row[recent_session_columns.sample_rate] = "??";
child_row[recent_session_columns.disk_format] = "--";
}
+#else
+ child_row[recent_session_columns.sample_rate] = "";
+ child_row[recent_session_columns.disk_format] = "";
+#endif
++session_snapshot_count;
}