forked from AuroraMiddleware/gtk
gtk-demo: don't try to add tabs for empty filenames
This commit is contained in:
parent
c5629fd06a
commit
46f967dd7a
@ -573,8 +573,10 @@ load_file (const gchar *filename)
|
||||
|
||||
names = g_strsplit (filename, " ", -1);
|
||||
|
||||
for (i = 1; names[i]; i++)
|
||||
add_data_tab (names[i]);
|
||||
for (i = 1; names[i]; i++) {
|
||||
if (strlen (names[i]) > 0)
|
||||
add_data_tab (names[i]);
|
||||
}
|
||||
|
||||
if (current_file && !strcmp (current_file, names[0]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user