changed more pointers to smart points

This commit is contained in:
2018-12-28 17:22:40 +01:00
parent 5229f5eec3
commit c2dc4b72a5
5 changed files with 37 additions and 22 deletions

View File

@@ -56,9 +56,10 @@ MainWindow::~MainWindow() {
}
void MainWindow::WindowTraining() {
// this->interfaceTraining = new Training(this, this->db);
this->interfaceTraining = std::make_shared<Training>(this, this->db);
this->interfaceTraining->show();
{
this->interfaceTraining = std::make_shared<Training>(this, this->db);
this->interfaceTraining->show();
}
}
void MainWindow::NewWindowSettings() {