File tree 2 files changed +4
-3
lines changed
src/modules/backends/web/qtwebengine
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ void QtWebEngineBookmarksImportJob::addBookmark(QVariant itemVariant)
507
507
BookmarksModel::BookmarkType type (BookmarksModel::UnknownBookmark);
508
508
QMap<int , QVariant> metaData ({{BookmarksModel::TitleRole, title}});
509
509
510
- if (typeString == " anchor" )
510
+ if (typeString == " anchor" || typeString == " feed " )
511
511
{
512
512
const QDateTime dateAdded (getDateTime (itemMap[" dateAdded" ]));
513
513
const QDateTime dateModified (getDateTime (itemMap[" dateModified" ]));
@@ -522,7 +522,8 @@ void QtWebEngineBookmarksImportJob::addBookmark(QVariant itemVariant)
522
522
metaData[BookmarksModel::TimeAddedRole] = dateModified;
523
523
}
524
524
525
- type = BookmarksModel::UrlBookmark;
525
+ type = (typeString == " anchor" ? BookmarksModel::UrlBookmark : BookmarksModel::FeedBookmark);
526
+
526
527
const QString url = itemMap[" url" ].toString ();
527
528
528
529
if (!areDuplicatesAllowed () && BookmarksManager::hasBookmark (url))
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function processBookmarkItems(items) {
17
17
else
18
18
{
19
19
importBookmarksObj . addBookmark ( {
20
- 'type' : ' anchor',
20
+ 'type' : ( node . hasAttribute ( 'FEEDURL' ) ? 'feed' : ' anchor') ,
21
21
'title' : node . innerHTML ,
22
22
'url' : node . getAttribute ( 'href' ) ,
23
23
'dateAdded' : node . getAttribute ( 'add_date' ) ,
You can’t perform that action at this time.
0 commit comments