diff options
Diffstat (limited to 'alot/ui.py')
-rw-r--r-- | alot/ui.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -310,7 +310,7 @@ class UI(object): """ history = history or [] - fut = asyncio.Future() + fut = asyncio.get_event_loop().create_future() oldroot = self.mainloop.widget def select_or_cancel(text): @@ -539,7 +539,7 @@ class UI(object): assert cancel is None or cancel in choices.values() assert msg_position in ['left', 'above'] - fut = asyncio.Future() # Create a returned future + fut = asyncio.get_event_loop().create_future() # Create a returned future oldroot = self.mainloop.widget def select_or_cancel(text): |