aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/main_window/GeneralMainWindow.cpp3
-rw-r--r--src/ui/main_window/KeyMgmt.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/main_window/GeneralMainWindow.cpp b/src/ui/main_window/GeneralMainWindow.cpp
index 8319b741..3d662332 100644
--- a/src/ui/main_window/GeneralMainWindow.cpp
+++ b/src/ui/main_window/GeneralMainWindow.cpp
@@ -65,8 +65,7 @@ void GpgFrontend::UI::GeneralMainWindow::slot_restore_settings() noexcept {
QByteArray::fromBase64(window_state.window_state_data.toUtf8()));
}
- if (size_.width() < 640) size_.setWidth(640);
- if (size_.height() < 480) size_.setHeight(480);
+ this->setMinimumSize(640, 480);
// restore window size & location
if (window_state.window_save) {
diff --git a/src/ui/main_window/KeyMgmt.cpp b/src/ui/main_window/KeyMgmt.cpp
index 96df89d1..af9a6b31 100644
--- a/src/ui/main_window/KeyMgmt.cpp
+++ b/src/ui/main_window/KeyMgmt.cpp
@@ -121,7 +121,7 @@ KeyMgmt::KeyMgmt(QWidget* parent)
this->statusBar()->show();
setWindowTitle(tr("KeyPair Management"));
- setMinimumSize(QSize(600, 400));
+ setMinimumSize(QSize(640, 480));
key_list_->AddMenuAction(generate_subkey_act_);
key_list_->AddMenuAction(delete_selected_keys_act_);