Commit Graph

12671 Commits

Author SHA1 Message Date
Ryan Roden-Corrent
8e34b54cd7 Remove obsolete signals.
The added/removed signals for the urlmark managers are no longer used as
the completion models are generated on-the-fly. The changed signal is
still needed so the save-manager knows when to trigger a write to disk.

Also removes session_manager.update_completion, which is no longer
needed for the same reason as above.

keyconf.changed cannot be removed, as it is still wired up to
basekeyparser.

Resolves #2874.
2017-07-29 13:09:10 -04:00
Ryan Roden-Corrent
1ab7bb83cc Support delete from :{quick,book}mark-load.
Pressing ctrl-d in the completion menu for
:quickmark-load/:bookmark-load  will now delete the selected
quickmark/bookmark.

Resolves #2840.
2017-07-29 12:49:20 -04:00
Florian Bruhin
cee82a3c7b Merge pull request #2871 from rcorre/fix-fetch-delete
Fix fetch/delete sql category bug.
2017-07-28 16:17:11 +02:00
Ryan Roden-Corrent
c6cb6ccd07 Fix fetch/delete sql category bug.
Fixes #2868, where pressing <shift-tab> then <ctrl-d> in history
completion (with > 256 items) would cause later items to disappear (and
cause a crash if you try to delete again).

Cause:
Scrolling to the bottom would fetch an additional 256 items (in addition
to the 256 that are fetched at first). Deleting causes the query to
re-run, but it only fetches the initial 256 items, so the current index
is now invalid.

Fix:
After deleting from the history category, call fetchMore until it has
enough rows populated that the current index is valid.
2017-07-28 09:07:30 -04:00
Florian Bruhin
8f63bb1edc Merge pull request #2853 from rcorre/fix-completionview
Expand history completion results if on last index.
2017-07-27 12:31:01 +02:00
Florian Bruhin
2b07b3db2b Update 'not code' label in CONTRIBUTING 2017-07-27 12:18:59 +02:00
Florian Bruhin
629f6a6876 Remove unused import 2017-07-27 09:56:34 +02:00
Florian Bruhin
e4f776448e Fix typo 2017-07-27 09:25:33 +02:00
Florian Bruhin
a942613d7f Use ctypes instead of PyOpenGL for QtWebEngine Nvidia workaround
Fixes #2821
2017-07-27 09:22:12 +02:00
Ryan Roden-Corrent
32fa1ff1e9 Expand history completion results if on last index.
When tabbing to the last index of history completion, call expandAll
which will call fetchMore to retrieve more query results, if available.

Calling fetchMore directly will not update the view, and for some
reason self.expand(idx.parent()) and
self.expand(self.model().index(idx.row(), 0)) did not work, so I'm using
expandAll.

Fixes #2841.
2017-07-26 07:46:12 -04:00
Florian Bruhin
210bc0fd6b Merge pull request #2861 from rcorre/bind-completion-fix
Fix bind completion for bindings with arguments.
2017-07-26 07:40:08 +02:00
Ryan Roden-Corrent
1929883485 Fix bind completion for bindings with arguments.
When a key is bound to a command line that includes one or more
arguments to a command, bind completion should show the whole command
for the "Current" category, and use only the command name to look up the
description.

Fixes #2859, where a crash was caused by looking up the description by
the full command text rather than just the name.
2017-07-25 12:55:44 -04:00
Florian Bruhin
79e7eb6495 pytest: Show Median instead of Mean for benchmarks 2017-07-25 17:37:18 +02:00
Florian Bruhin
5ecda25fdb Fix renderer process test for older Qt versions 2017-07-25 17:35:42 +02:00
Florian Bruhin
792a01ba6d Try to stabilize renderer process test 2017-07-25 16:56:38 +02:00
Florian Bruhin
3de0b15073 Delay showing the "renderer process killed" error page a bit
Sometimes, we get another error with "Renderer process was killed" and the data:
URL for the error page. This is probably because the renderer process wasn't
restarted yet. This hopefully helps.
2017-07-25 16:00:52 +02:00
Florian Bruhin
79c088d3a4 pytest.ini: Add benchmark-columns 2017-07-24 16:52:36 +02:00
Florian Bruhin
cb2dbc1e0a Merge pull request #2857 from qutebrowser/pyup-scheduled-update-07-24-2017
Scheduled weekly dependency update for week 30
2017-07-24 16:52:43 +02:00
pyup-bot
05dba38190 Update vulture from 0.16 to 0.19 2017-07-24 16:04:24 +02:00
pyup-bot
c4d7cc79b5 Update vulture from 0.16 to 0.19 2017-07-24 16:04:22 +02:00
pyup-bot
38664f9a0a Update pytest-mock from 1.6.0 to 1.6.2 2017-07-24 16:04:21 +02:00
pyup-bot
734acd628e Update pytest-benchmark from 3.0.0 to 3.1.0 2017-07-24 16:04:20 +02:00
pyup-bot
b70f56e87f Update hypothesis from 3.13.0 to 3.14.0 2017-07-24 16:04:18 +02:00
pyup-bot
f8312e9502 Update decorator from 4.1.1 to 4.1.2 2017-07-24 16:04:17 +02:00
pyup-bot
96ed6668e5 Update setuptools from 36.2.0 to 36.2.1 2017-07-24 16:04:15 +02:00
pyup-bot
c49e5f84d9 Update urllib3 from 1.21.1 to 1.22 2017-07-24 16:04:14 +02:00
pyup-bot
920fae02c1 Update urllib3 from 1.21.1 to 1.22 2017-07-24 16:04:13 +02:00
pyup-bot
c1b8830831 Update urllib3 from 1.21.1 to 1.22 2017-07-24 16:04:11 +02:00
Florian Bruhin
137eec8745 Merge pull request #2856 from rcorre/completion-fixes
Abort resizeEvent if model is None.
2017-07-24 15:05:14 +02:00
Ryan Roden-Corrent
f09423efe5 Abort resizeEvent if model is None.
Some reports came in that a resizeEvent was causing a crash due to the
model being none in the CompletionView.

Fixes #2854.
2017-07-24 08:16:14 -04:00
Florian Bruhin
b7fe13434b Merge pull request #2855 from Penaz91/master
Troubleshooting for GCC 6 QtWebEngine Render Crash
2017-07-24 11:09:38 +02:00
Penaz
99559b24e3 Update FAQ.asciidoc 2017-07-24 10:58:45 +02:00
Penaz
cd27363126 Merge pull request #1 from qutebrowser/master
Update Fork
2017-07-24 10:39:08 +02:00
Florian Bruhin
07b2fde2de Mark test_version as flaky
Sometimes it fails on Travis with empty output for no apparent reason
2017-07-24 08:05:51 +02:00
Florian Bruhin
df3ba278e9 Merge pull request #2852 from rcorre/fix-max-items
Fix web-history-max-items-crash.
2017-07-24 07:29:15 +02:00
Florian Bruhin
837ee5c626 Merge pull request #2846 from rcorre/completion-fixes
Completion fixes
2017-07-24 07:27:11 +02:00
Ryan Roden-Corrent
2ad4cdd729 Fix web-history-max-items-crash.
Fixes #2849, where pressing 'o' with web-history-max-items set and no
history items would cause a crash as the query result is empty.
2017-07-23 21:17:22 -04:00
Ryan Roden-Corrent
ff9efe22ae Fix unused imports and removeRow override.
Override removeRows instead of removeRow.

> removeRow is not virtual in C++, so if this gets called by Qt
> internally for some reason, it wouldn't use the overloaded version -
> so I think it'd be better to implement removeRows and then use
> removeRow without overloading that

- The-Compiler
2017-07-23 17:30:09 -04:00
Florian Bruhin
630e9ebd66 Remove old notes file 2017-07-23 23:15:41 +02:00
Florian Bruhin
e402e37f12 Work around segfault when using pdb 2017-07-23 22:45:13 +02:00
Florian Bruhin
56b4989f44 Fix tests for QProcess changes 2017-07-23 22:10:50 +02:00
Florian Bruhin
7d10e47046 Update changelog 2017-07-23 21:38:10 +02:00
Florian Bruhin
a08fd0fcb1 Fix error message with :spawn -d 2017-07-23 21:38:10 +02:00
Florian Bruhin
353f86488a Disallow :spawn -u -d 2017-07-23 21:38:10 +02:00
Ryan Roden-Corrent
00be9e3c7f Remove obsolete TODO.
New aliases will now show up without a signal, as completions are
generated on-demand.
2017-07-22 18:09:10 -04:00
Ryan Roden-Corrent
b61691684e Clear selection when setting completion pattern.
It doesn't make sense to have an active selection while you are
filtering by entering text. You should be in one of two states:

1. Tabbing through completions (valid selection)
2. Entering a filter pattern (invalid selection)

Fixes #2843, where a crash would occur after the following:

1. tab to an item other than the first
2. <backspace>
3. re-type last character
4. <ctrl-d>

This would try to delete an out of range index.
2017-07-22 18:06:16 -04:00
Ryan Roden-Corrent
bc21904fef Fix completion-item-del on undeletable item.
Even though no item was deleted, it was manipulating the completion
model because beginRemoveRows was called before the exception was
raised.

This fixes that problem by moving the removal logic (and delete_func
check) into the parent model, so it can check whether deletion is
possible before calling beginRemoveRows.

Fixes #2839.
2017-07-22 17:16:35 -04:00
Florian Bruhin
a00548ec4d Merge pull request #2827 from jgkamat/jay/fix-small-crash
Enforce a minimum size for non-pinned tabs
2017-07-22 22:07:31 +02:00
Jay Kamat
27dfc72012
Restructure minimum tab size behavior 2017-07-22 10:55:08 -07:00
Florian Bruhin
e943f0063e Merge pull request #2834 from kchr/bugfix/use-breadability-module-when-available
Add support for breadability module in readability userscript
2017-07-22 18:28:49 +02:00