#include <tny-simple-list.h>
#include <modest-tny-folder.h>
#include <modest-tny-local-folders-account.h>
+#include <modest-tny-outbox-account.h>
#include <modest-marshal.h>
#include <modest-icon-names.h>
#include <modest-tny-account-store.h>
if (priv->visible_account_id && strcmp (account_id, priv->visible_account_id))
retval = FALSE;
}
+
+ /* Never show these to the user. They are merged into one folder
+ * in the local-folders account instead: */
+ if (retval && MODEST_IS_TNY_OUTBOX_ACCOUNT (acc))
+ retval = FALSE;
}
}
return FALSE;
}
-
-
void
modest_folder_view_select_first_inbox_or_local (ModestFolderView *self)
{
GtkTreeIter iter, inbox_iter;
GtkTreeSelection *sel;
+ /* Do not set it if the folder view was not painted */
+ if (!GTK_WIDGET_MAPPED (self))
+ return;
+
model = gtk_tree_view_get_model (GTK_TREE_VIEW (self));
if (!model)
return;