forked from osmocom/wireshark
Don't write the recent file when leaving a deleted profile.
svn path=/trunk/; revision=27559
This commit is contained in:
parent
aa3b687793
commit
adfda29e38
|
@ -3323,8 +3323,10 @@ void change_configuration_profile (const gchar *profile_name)
|
|||
/* Get the current geometry, before writing it to disk */
|
||||
main_save_window_geometry(top_level);
|
||||
|
||||
/* Write recent file for profile we are leaving */
|
||||
write_profile_recent();
|
||||
if (profile_exists(get_profile_name())) {
|
||||
/* Write recent file for profile we are leaving, if it still exists */
|
||||
write_profile_recent();
|
||||
}
|
||||
|
||||
/* Set profile name and update the status bar */
|
||||
set_profile_name (profile_name);
|
||||
|
|
Loading…
Reference in New Issue