This commit is contained in:
Martin Rotter 2016-01-04 18:59:24 +01:00
parent d1b423ae18
commit 22a6da1604
2 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,7 @@ void FeedMessageViewer::updateFeedButtonsAvailability() {
form_main->m_ui->m_actionServiceDelete->setEnabled(service_selected);
form_main->m_ui->m_actionServiceEdit->setEnabled(service_selected);
form_main->m_ui->m_actionAddFeedIntoSelectedAccount->setEnabled(service_selected);
form_main->m_ui->m_actionAddFeedIntoSelectedAccount->setEnabled(anything_selected);
form_main->m_ui->m_menuAddItem->setEnabled(!critical_action_running);
form_main->m_ui->m_menuAccounts->setEnabled(!critical_action_running);

View File

@ -137,8 +137,8 @@ void FeedsView::loadExpandedStates() {
void FeedsView::addFeedIntoSelectedAccount() {
RootItem *selected = selectedItem();
if (selected->kind() == RootItemKind::ServiceRoot) {
ServiceRoot *root = selected->toServiceRoot();
if (selected != NULL) {
ServiceRoot *root = selected->getParentServiceRoot();
if (root->supportsFeedAddingByUrl()) {
root->addFeedByUrl();