diff --git a/src/simudator/gui/cpu_graphics_scene.py b/src/simudator/gui/cpu_graphics_scene.py index 16582e8409dc61a08eaa9176b765df29d74d2c2a..a64e417b1dfa6a4b9d834bb031373a2f9364a3f1 100644 --- a/src/simudator/gui/cpu_graphics_scene.py +++ b/src/simudator/gui/cpu_graphics_scene.py @@ -254,10 +254,6 @@ class CpuGraphicsScene(QGraphicsScene): dialog.setAcceptMode(QFileDialog.AcceptOpen) path = dialog.getSaveFileName()[0] - # Change file to the selected file if a file was selected - if path == '': - return - # Open the given file erasing the previous content with open(path, "w") as fp: graphics_modules_data = {} @@ -314,7 +310,6 @@ class CpuGraphicsScene(QGraphicsScene): file_path : str Path to a file containing a layout for the processor scene. """ - # TODO: speed(?) graphics_modules = self._module_graphics_items ports = {} graphics_signals = {}