Logo Search packages:      
Sourcecode: akregator version File versions

void View::slotFeedModify (  )  [slot]

calls the properties dialog for feeds, starts renaming for feed groups

Definition at line 968 of file akregator_view.cpp.

References Akregator::TreeNode::isGroup(), Akregator::Feed::isMerged(), and m_tree.

{
    TreeNode* node = m_tree->selectedNode();
    
    if (node && node->isGroup())
    {
        m_tree->selectedItem()->setRenameEnabled(0, true);
        m_tree->selectedItem()->startRename(0);
        return;
    }

    Feed *feed = static_cast<Feed *>(node);
    if (!feed)
        return;

    FeedPropertiesDialog *dlg = new FeedPropertiesDialog( 0, "edit_feed" );

    dlg->setFeed(feed);

    if (dlg->exec() == QDialog::Accepted) 
    {   
        if ( feed->isMerged() )
            Archive::save(feed);
    }
    delete dlg;
}


Generated by  Doxygen 1.6.0   Back to index