fixed opts bug
[ptask.git] / src / main.c
index 6abe9a6..e16b9ec 100644 (file)
@@ -28,9 +28,9 @@
 
 #include <config.h>
 
-#include "log.h"
-#include "note.h"
-#include "tw.h"
+#include <log.h>
+#include <note.h>
+#include <tw.h>
 #include <ui.h>
 #include <ui_projecttree.h>
 #include <ui_taskpanel.h>
@@ -286,13 +286,11 @@ static int status_changed_cbk(GtkComboBox *w, gpointer data)
 
 static int cursor_changed_cbk(GtkTreeView *treeview, gpointer data)
 {
-       struct task *task;
-
-       log_debug("cursor_changed_cbk");
+       log_fct_enter();
 
-       task = get_selected_task(treeview);
+       ui_taskpanel_update(get_selected_task(treeview));
 
-       ui_taskpanel_update(task);
+       log_fct_exit();
 
        return FALSE;
 }