mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
1999-09-20 Federico Mena Quintero <federico@redhat.com>
* gsession.c (load_panel_info): Doh. Fix test for presence of the cwd info. (load_session_info): If we could not load the panel info, do not insert bogus data in the list.
This commit is contained in:
parent
19db511983
commit
b207905d3e
@ -1,5 +1,10 @@
|
||||
1999-09-20 Federico Mena Quintero <federico@redhat.com>
|
||||
|
||||
* gsession.c (load_panel_info): Doh. Fix test for presence of the
|
||||
cwd info.
|
||||
(load_session_info): If we could not load the panel info, do not
|
||||
insert bogus data in the list.
|
||||
|
||||
The following is a patch from Volker Braun
|
||||
<volker.braun@physik.hu-berlin.de> to fix column resizing in the
|
||||
file panels.
|
||||
|
@ -73,7 +73,7 @@ load_panel_info (char *file, char *section)
|
||||
gnome_config_push_prefix (prefix);
|
||||
|
||||
cwd = gnome_config_get_string ("cwd");
|
||||
if (cwd) {
|
||||
if (!cwd) {
|
||||
g_warning ("Could not read panel data for \"%s\"", prefix);
|
||||
gnome_config_pop_prefix ();
|
||||
g_free (prefix);
|
||||
@ -151,6 +151,9 @@ load_session_info (char *filename)
|
||||
while ((iterator = gnome_config_iterator_next (iterator, &key, &value)) != NULL)
|
||||
if (key && strncmp (key, "panel ", 6) == 0) {
|
||||
pi = load_panel_info (filename, key);
|
||||
if (!pi)
|
||||
continue;
|
||||
|
||||
panels = g_slist_prepend (panels, pi);
|
||||
g_free (key);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user