Skip to content
Snippets Groups Projects
Commit 5549637f authored by Lan Dam's avatar Lan Dam
Browse files

handle cancel for changing Main Directory

parent 008f6dd6
No related branches found
No related tags found
1 merge request!73handle cancel for changing Main Directory
Pipeline #2216 passed with stage
in 2 minutes and 39 seconds
......@@ -282,8 +282,11 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
fd.setFileMode(QtWidgets.QFileDialog.Directory)
fd.setDirectory(self.curr_dir_line_edit.text())
fd.exec_()
new_path = fd.selectedFiles()[0]
self.set_current_directory(new_path)
try:
new_path = fd.selectedFiles()[0]
self.set_current_directory(new_path)
except IndexError:
pass
def get_requested_wf_chans(self) -> List[Union[str, int]]:
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment