Commit 123ca658 authored by 3Yan's avatar 3Yan
Browse files

Minor fix in dirview path

parent 07036f52
......@@ -259,7 +259,8 @@ def main():
update.signal.connect(
lambda: treeview.setCurrentIndex(fileModel.index(filename[0])))
update.signal.connect(
lambda: dirview.setRootIndex(fileModel.index(os.path.dirname(filename[0]))))
lambda: dirview.setRootIndex(fileModel.index(
os.path.dirname(os.path.realpath(filename[0])))))
treeview.doubleClicked.connect(lambda index: load_file(
main_window, chromatogram, spectrum, ds, ms, filename, chrom,
update, config, filename=fileModel.filePath(index)))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment