aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/GeneralMainWindow.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-05-03 15:18:03 +0000
committersaturneric <[email protected]>2024-05-03 15:18:03 +0000
commit15901a9e5eb47f64390d70d7bca26f2b7ffd5646 (patch)
tree23638209a333ec64c89cc2e53fe09eb1bcfa89ee /src/ui/main_window/GeneralMainWindow.cpp
parentfeat: add option to close all gnupg daemon at close (diff)
downloadGpgFrontend-15901a9e5eb47f64390d70d7bca26f2b7ffd5646.tar.gz
GpgFrontend-15901a9e5eb47f64390d70d7bca26f2b7ffd5646.zip
fix: set min size of key mnt and another main window
Diffstat (limited to 'src/ui/main_window/GeneralMainWindow.cpp')
-rw-r--r--src/ui/main_window/GeneralMainWindow.cpp3
1 files changed, 1 insertions, 2 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) {