* Fix fixed size window sizing
* Fix device config windows not appearing centered and modal under Wayland
This commit is contained in:
@@ -97,6 +97,7 @@ int SettingsModel::rowCount(const QModelIndex &parent) const {
|
||||
return pages.size();
|
||||
}
|
||||
|
||||
Settings* Settings::settings = nullptr;;
|
||||
Settings::Settings(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::Settings)
|
||||
@@ -142,6 +143,8 @@ Settings::Settings(QWidget *parent) :
|
||||
connect(ui->listView->selectionModel(), &QItemSelectionModel::currentChanged, this, [this](const QModelIndex ¤t, const QModelIndex &previous) {
|
||||
ui->stackedWidget->setCurrentIndex(current.row());
|
||||
});
|
||||
|
||||
Settings::settings = this;
|
||||
}
|
||||
|
||||
Settings::~Settings()
|
||||
@@ -149,6 +152,7 @@ Settings::~Settings()
|
||||
delete ui;
|
||||
delete Harddrives::busTrackClass;
|
||||
Harddrives::busTrackClass = nullptr;
|
||||
Settings::settings = nullptr;
|
||||
}
|
||||
|
||||
void Settings::save() {
|
||||
|
||||
Reference in New Issue
Block a user