We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0b1c75 commit 70bedaeCopy full SHA for 70bedae
1 file changed
src/mnelab/mainwindow.py
@@ -1823,7 +1823,10 @@ def auto_duplicate(self):
1823
"""
1824
# if current data is stored in a file create a new data set
1825
if self.model.current["fname"]:
1826
+ parent_index = self.model.index
1827
self.model.duplicate_data()
1828
+ if read_settings("memory_saving"):
1829
+ self.model.evict_dataset(parent_index)
1830
return True
1831
# otherwise ask the user
1832
msg = QMessageBox(self)
@@ -1848,7 +1851,10 @@ def auto_duplicate(self):
1848
1851
if msg.clickedButton() == overwrite_button:
1849
1852
return False
1850
1853
else:
1854
1855
1856
1857
1858
1859
1860
def _add_recent(self, fname):
0 commit comments