191 PartDownloader* dialog = new PartDownloader(m_window); |
191 PartDownloader* dialog = new PartDownloader(m_window); |
192 connect(dialog, &PartDownloader::primaryFileDownloaded, [&]() |
192 connect(dialog, &PartDownloader::primaryFileDownloaded, [&]() |
193 { |
193 { |
194 m_window->changeDocument(dialog->primaryFile()); |
194 m_window->changeDocument(dialog->primaryFile()); |
195 m_window->doFullRefresh(); |
195 m_window->doFullRefresh(); |
196 m_window->renderer()->resetAngles(); |
196 m_window->currentRenderer()->resetAngles(); |
197 }); |
197 }); |
198 dialog->exec(); |
198 dialog->exec(); |
199 } |
199 } |
200 |
200 |
201 void FileToolset::makePrimitive() |
201 void FileToolset::makePrimitive() |