Logo Search packages:      
Sourcecode: akregator version File versions

void View::slotOpenHomepage (  )  [slot]

opens the homepage of the currently selected feed

Definition at line 1036 of file akregator_view.cpp.

References displayInExternalBrowser(), Akregator::Feed::htmlUrl(), Akregator::Feed::isGroup(), m_tree, and slotOpenTab().

{
    Feed* feed = static_cast<Feed *>(m_tree->selectedNode());

    if (!feed || feed->isGroup())
        return;

    switch (Settings::lMBBehaviour())
    {
        case Settings::EnumLMBBehaviour::OpenInExternalBrowser:
            displayInExternalBrowser(feed->htmlUrl());
            break;
        case Settings::EnumLMBBehaviour::OpenInBackground:
            slotOpenTab(feed->htmlUrl(), true);
            break;
        default:
            slotOpenTab(feed->htmlUrl(), false);
    }
}


Generated by  Doxygen 1.6.0   Back to index