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:
Nikolaus Gullotta 2020-06-08 09:38:29 -05:00
parent c7edc28383
commit e6bbbe18c6
No known key found for this signature in database
GPG key ID: C1580877951565A3

View file

@ -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);
}