- modified the method that detects which tab was closed in the Plot Area so it will no longer depend on it's translated text but on it's objectName set on the QTab creation

This commit is contained in:
Marius Stanciu
2020-04-29 10:48:47 +03:00
committed by Marius
parent a5384d50d8
commit 2ca6e2e3f1
3 changed files with 14 additions and 14 deletions

View File

@@ -2088,9 +2088,9 @@ class FCDetachableTab2(FCDetachableTab):
:param currentIndex:
:return:
"""
idx = self.currentIndex()
self.tab_closed_signal.emit(self.tabText(idx))
# idx = self.currentIndex()
self.tab_name = self.widget(currentIndex).objectName()
self.tab_closed_signal.emit(self.tab_name)
self.removeTab(currentIndex)