Fix Message Box button size on macOS and Linux

* Fixes #10381
This commit is contained in:
Jonathan White 2024-03-30 08:01:44 -04:00
parent deb0926497
commit ff6c3d7d9a
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
5 changed files with 6 additions and 4 deletions

View file

@ -328,6 +328,7 @@ void DatabaseOpenWidget::openDatabase()
auto btn = msgBox->addButton(tr("Open database anyway"), QMessageBox::ButtonRole::AcceptRole);
msgBox->setDefaultButton(btn);
msgBox->addButton(QMessageBox::Cancel);
msgBox->layout()->setSizeConstraint(QLayout::SetMinimumSize);
msgBox->exec();
if (msgBox->clickedButton() != btn) {
m_db.reset(new Database());