diff --git a/src/gui/DatabaseOpenWidget.cpp b/src/gui/DatabaseOpenWidget.cpp
index 781b836fd..21df934c2 100644
--- a/src/gui/DatabaseOpenWidget.cpp
+++ b/src/gui/DatabaseOpenWidget.cpp
@@ -52,6 +52,13 @@ DatabaseOpenWidget::DatabaseOpenWidget(QWidget* parent)
connect(m_ui->buttonBox, SIGNAL(accepted()), SLOT(openDatabase()));
connect(m_ui->buttonBox, SIGNAL(rejected()), SLOT(reject()));
+
+#ifdef Q_OS_MACOS
+ // add random padding to layouts to align widgets properly
+ m_ui->dialogButtonsLayout->setContentsMargins(10, 0, 15, 0);
+ m_ui->gridLayout->setContentsMargins(10, 0, 0, 0);
+ m_ui->labelLayout->setContentsMargins(10, 0, 10, 0);
+#endif
}
DatabaseOpenWidget::~DatabaseOpenWidget()
diff --git a/src/gui/DatabaseOpenWidget.ui b/src/gui/DatabaseOpenWidget.ui
index 4aae5faf2..17360f4c4 100644
--- a/src/gui/DatabaseOpenWidget.ui
+++ b/src/gui/DatabaseOpenWidget.ui
@@ -10,7 +10,7 @@
250
-
+
8
@@ -28,14 +28,24 @@
-
-
-
- Enter master key
+
+
+ 5
-
-
- -
-
+
+ 5
+
+
-
+
+
+ Enter master key
+
+
+
+ -
+
+
+
-
@@ -52,17 +62,20 @@
-
+
+ 5
+
8
-
-
+
-
Key File:
- -
+
-
Password:
@@ -70,9 +83,18 @@
-
-
+
+
+ 5
+
+
+ 5
+
-
+
+ true
+
0
@@ -94,7 +116,13 @@
-
-
+
+
+ 5
+
+
+ 5
+
-
@@ -114,14 +142,21 @@
-
-
-
- Qt::Horizontal
+
+
+ 5
-
- QDialogButtonBox::Cancel|QDialogButtonBox::Ok
+
+ 5
-
+
-
+
+
+ QDialogButtonBox::Cancel|QDialogButtonBox::Ok
+
+
+
+
-
@@ -152,7 +187,6 @@
checkKeyFile
comboKeyFile
buttonBrowseFile
- buttonBox