Fixed an Linux crash after switching between printer technologies

This commit is contained in:
YuSanka 2020-10-07 09:54:13 +02:00
parent 26b95e3c3c
commit e613eeed48

View file

@ -2843,6 +2843,9 @@ void TabPrinter::update_pages()
//for (auto& el : m_pages)
// el.get()->Hide();
//clear all active pages before switching
clear_pages();
// set m_pages to m_pages_(technology before changing)
m_printer_technology == ptFFF ? m_pages.swap(m_pages_fff) : m_pages.swap(m_pages_sla);