Commit 3eefd003 authored by Thomas Vincent's avatar Thomas Vincent

fix opening of fit after qspace when it was renamed

parent 9a659eb4
......@@ -227,7 +227,7 @@ class XsocsGui(Qt.QMainWindow):
fitGroup = item.fitGroup()
fitItem = fitGroup.addFitFile(fitFile)
self.model().refresh()
index = self.tree.pathToIndex(fitItem.path)
index = self.tree.pathToIndex(fitItem.customPath)
if index.isValid():
self.tree.setCurrentIndex(index)
self.__showFit(index.data(ModelRoles.InternalDataRole))
......
Markdown is supported
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