Fixed #146.
This commit is contained in:
parent
d1b423ae18
commit
22a6da1604
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user