Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma Mobile
Angelfish
Commits
faccb125
Commit
faccb125
authored
Mar 02, 2020
by
Rinigus Saar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
follow active state of bookmarks and history model
parent
55481249
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
src/bookmarkshistorymodel.cpp
src/bookmarkshistorymodel.cpp
+3
-0
src/contents/ui/NavigationEntrySheet.qml
src/contents/ui/NavigationEntrySheet.qml
+0
-1
No files found.
src/bookmarkshistorymodel.cpp
View file @
faccb125
...
...
@@ -79,6 +79,9 @@ void BookmarksHistoryModel::onDatabaseChanged(const QString &table)
void
BookmarksHistoryModel
::
setQuery
()
{
if
(
!
m_active
)
return
;
QString
command
;
QString
b
=
QStringLiteral
(
"SELECT rowid AS id, url, title, icon, :now - lastVisited AS lastVisited, %1 AS bookmarked FROM %2 "
);
QLatin1String
filter
=
m_filter
.
isEmpty
()
?
QLatin1String
()
:
QLatin1String
(
"WHERE url LIKE '%' || :filter || '%' OR title LIKE '%' || :filter || '%'"
);
...
...
src/contents/ui/NavigationEntrySheet.qml
View file @
faccb125
...
...
@@ -141,7 +141,6 @@ Controls.Drawer {
onOpened
:
{
// check if the drawer was just slightly slided
if
(
openedState
)
return
;
openedState
=
true
;
urlInput
.
text
=
currentWebView
.
requestedUrl
;
urlInput
.
forceActiveFocus
();
urlInput
.
selectAll
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment