Skip to content

Commit

Permalink
Save
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Nov 13, 2023
1 parent caecf53 commit 36fe7cc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
19 changes: 19 additions & 0 deletions src/librssguard/services/greader/greaderserviceroot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,25 @@ FormAccountDetails* GreaderServiceRoot::accountSetupDialog() const {
}

void GreaderServiceRoot::editItems(const QList<RootItem*>& items) {
auto feeds = boolinq::from(items)
.select([](RootItem* it) {
return qobject_cast<Feed*>(it);
})
.where([](Feed* fd) {
return fd != nullptr;
})
.toStdList();

if (!feeds.empty()) {
QScopedPointer<FormGreaderFeedDetails> form_pointer(new FormGreaderFeedDetails(this,
nullptr,
{},
qApp->mainFormWidget()));

form_pointer->addEditFeed<GreaderFeed>(FROM_STD_LIST(QList<Feed*>, feeds));
return;
}

if (items.first()->kind() == RootItem::Kind::ServiceRoot) {
QScopedPointer<FormEditGreaderAccount> p(qobject_cast<FormEditGreaderAccount*>(accountSetupDialog()));

Expand Down
3 changes: 0 additions & 3 deletions src/librssguard/services/standard/gui/standardfeeddetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,6 @@ void StandardFeedDetails::prepareForNewFeed(RootItem* parent_to_select, const QS
if (!url.isEmpty()) {
m_ui.m_txtSource->textEdit()->setPlainText(url);
}
/*else if (Application::clipboard()->mimeData()->hasText()) {
m_ui.m_txtSource->textEdit()->setPlainText(Application::clipboard()->text());
}*/

m_ui.m_txtSource->setFocus();
m_ui.m_txtSource->textEdit()->selectAll();
Expand Down

0 comments on commit 36fe7cc

Please sign in to comment.