Commit 46f967dd authored by Cosimo Cecchi's avatar Cosimo Cecchi

gtk-demo: don't try to add tabs for empty filenames

parent c5629fd0
......@@ -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]))
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment