Kaydet (Commit) e1f43a4d authored tarafından Nick Treleaven's avatar Nick Treleaven

Prevent a segfault if the VTE has not been loaded

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@514 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst be9461a4
......@@ -2,6 +2,7 @@
* src/notebook.c: Don't prevent notebook tab focus because this
disables the notebook arrows.
* src/callbacks.c: Prevent a segfault if the VTE has not been loaded.
2006-06-30 Enrico Tröger <enrico.troeger@uvena.de>
......
......@@ -769,7 +769,7 @@ on_notebook1_switch_page_after (GtkNotebook *notebook,
gchar *path;
gchar *cmd;
if (doc_list[idx].file_name != NULL)
if (app->have_vte && doc_list[idx].file_name != NULL)
{
path = g_path_get_dirname(doc_list[idx].file_name);
cmd = g_strconcat("cd ", path, "\n", "clear\n", NULL);
......
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