Fix exception when saving quickmark (multiwin).

This commit is contained in:
Florian Bruhin 2014-10-07 07:02:29 +02:00
parent 1ad081a2db
commit 881e45d9eb

View File

@ -70,14 +70,15 @@ def prompt_save(win_id, url):
return return
urlstr = url.toString(QUrl.RemovePassword | QUrl.FullyEncoded) urlstr = url.toString(QUrl.RemovePassword | QUrl.FullyEncoded)
message.ask_async(win_id, "Add quickmark:", usertypes.PromptMode.text, message.ask_async(win_id, "Add quickmark:", usertypes.PromptMode.text,
functools.partial(quickmark_add, urlstr)) functools.partial(quickmark_add, win_id, urlstr))
@cmdutils.register() @cmdutils.register()
def quickmark_add(url, name, win_id): def quickmark_add(win_id, url, name):
"""Add a new quickmark. """Add a new quickmark.
Args: Args:
win_id: The window ID to display the errors in.
url: The url to add as quickmark. url: The url to add as quickmark.
name: The name for the new quickmark. name: The name for the new quickmark.
""" """