--- a/src/settingseditor/librarieseditor.cpp Tue Jun 14 17:55:50 2022 +0300 +++ b/src/settingseditor/librarieseditor.cpp Tue Jun 14 19:50:31 2022 +0300 @@ -4,9 +4,9 @@ #include "librarieseditor.h" #include "ui_librarieseditor.h" -LibrariesEditor::LibrariesEditor(Configuration* settings, QWidget* parent) : +LibrariesEditor::LibrariesEditor(QWidget* parent) : QWidget{parent}, - libraries{settings, this}, + libraries{this}, ui{*new Ui_LibrariesEditor} { this->ui.setupUi(this); @@ -144,7 +144,7 @@ return this->ui.librariesTable->selectionModel()->currentIndex().row(); } -void LibrariesEditor::saveSettings(Configuration* settings) +void LibrariesEditor::saveSettings() { - this->libraries.storeToSettings(settings); + this->libraries.storeToSettings(); }