mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 22:55:44 +01:00
Skip recent sessions with empty strings for names
This can happen if the recent sessions file has new lines with no characters on it which can be the direct loading sessions with wacky names. For example, one that has a carriage return or newline in it.
This commit is contained in:
parent
c7edc28383
commit
e6bbbe18c6
1 changed files with 4 additions and 0 deletions
|
|
@ -778,6 +778,10 @@ SessionDialog::redisplay_recent_sessions ()
|
|||
|
||||
/* remove any trailing / */
|
||||
|
||||
if (dirname.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (dirname[dirname.length()-1] == '/') {
|
||||
dirname = dirname.substr (0, dirname.length()-1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue