diff --git a/spinetoolbox/main.py b/spinetoolbox/main.py index 97ac4acd6..c946b7297 100644 --- a/spinetoolbox/main.py +++ b/spinetoolbox/main.py @@ -13,6 +13,7 @@ """Provides the main() function.""" import multiprocessing import os +import asyncio import PySide6 dirname = os.path.dirname(PySide6.__file__) @@ -38,6 +39,7 @@ def main(): """Creates main window GUI and starts main event loop.""" + asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) multiprocessing.freeze_support() logging.basicConfig( stream=sys.stderr,