From d9ab6707da90000992eed73677a4049f249a6cc2 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 20 Oct 2017 23:15:06 +0200 Subject: [PATCH] Keep inbox up. --- src/services/gmail/gmailserviceroot.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/services/gmail/gmailserviceroot.cpp b/src/services/gmail/gmailserviceroot.cpp index 2cc1fafc9..b1054bebb 100755 --- a/src/services/gmail/gmailserviceroot.cpp +++ b/src/services/gmail/gmailserviceroot.cpp @@ -70,6 +70,12 @@ void GmailServiceRoot::loadFromDatabase() { assembleCategories(categories); assembleFeeds(feeds); + foreach (RootItem* feed, childItems()) { + if (feed->customId() == QL1S("INBOX")) { + feed->setKeepOnTop(true); + } + } + // As the last item, add recycle bin, which is needed. appendChild(recycleBin()); updateCounts(true);