Save
This commit is contained in:
parent
caecf5355a
commit
36fe7ccf73
@ -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()));
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user