Use folderview_grab_focus() outside of folderview.c.
[claws.git] / src / main.c
index 15b479f67244bfb41c85489bef16e5ed7b11c5aa..987bc6830e1dd8085a15aefb2fbb85aec95830f5 100644 (file)
@@ -1535,8 +1535,8 @@ int main(int argc, char *argv[])
        } else if (cmd.receive && !cmd.target) {
                start_done = FALSE;
                g_timeout_add(1000, defer_check, NULL);
-       } 
-       gtk_widget_grab_focus(folderview->ctree);
+       }
+       folderview_grab_focus(folderview);
 
        if (cmd.compose) {
                open_compose_new(cmd.compose_mailto, cmd.attach_files);