From 073d3d30bdc8949410fabb5326a99cb1d9437141 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 17 Nov 2024 14:33:11 +0100 Subject: fix: should restart app after editing key db infos --- src/ui/dialog/controller/GnuPGControllerDialog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ui/dialog/controller/GnuPGControllerDialog.cpp') diff --git a/src/ui/dialog/controller/GnuPGControllerDialog.cpp b/src/ui/dialog/controller/GnuPGControllerDialog.cpp index 1ae1278b..2d0bab6e 100644 --- a/src/ui/dialog/controller/GnuPGControllerDialog.cpp +++ b/src/ui/dialog/controller/GnuPGControllerDialog.cpp @@ -345,7 +345,11 @@ void GnuPGControllerDialog::slot_add_new_key_database() { key_database.path = path; key_databases.append(key_database); + // refresh ui slot_refresh_key_database_table(); + + // announce the restart + this->slot_set_restart_needed(kDeepRestartCode); }); dialog->show(); } @@ -390,5 +394,8 @@ void GnuPGControllerDialog::slot_remove_existing_key_database() { } this->slot_refresh_key_database_table(); + + // announce the restart + this->slot_set_restart_needed(kDeepRestartCode); } } // namespace GpgFrontend::UI -- cgit v1.2.3