diff options
author | saturneric <[email protected]> | 2024-05-03 18:17:25 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-05-03 18:17:25 +0000 |
commit | 1d9cffa54afdca117a43465fb350ee548ec2e41f (patch) | |
tree | 4facf6641e312b39d19c1388c87eb702ea720ace /src/ui/dialog/controller | |
parent | Merge remote-tracking branch 'origin/main' into develop (diff) | |
download | GpgFrontend-1d9cffa54afdca117a43465fb350ee548ec2e41f.tar.gz GpgFrontend-1d9cffa54afdca117a43465fb350ee548ec2e41f.zip |
fix: discard changes but text still remains
Diffstat (limited to 'src/ui/dialog/controller')
-rw-r--r-- | src/ui/dialog/controller/GnuPGControllerDialog.cpp | 4 | ||||
-rw-r--r-- | src/ui/dialog/controller/GnuPGControllerDialog.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/controller/GnuPGControllerDialog.cpp b/src/ui/dialog/controller/GnuPGControllerDialog.cpp index b35d2a7d..1874e255 100644 --- a/src/ui/dialog/controller/GnuPGControllerDialog.cpp +++ b/src/ui/dialog/controller/GnuPGControllerDialog.cpp @@ -347,12 +347,12 @@ void GnuPGControllerDialog::apply_settings() { } auto GnuPGControllerDialog::get_restart_needed() const -> int { - return this->restart_needed_; + return this->restart_mode_; } void GnuPGControllerDialog::slot_set_restart_needed(int mode) { GF_UI_LOG_INFO("announce restart needed, mode: {}", mode); - this->restart_needed_ = mode; + this->restart_mode_ = mode; } auto GnuPGControllerDialog::check_custom_gnupg_path(QString path) -> bool { diff --git a/src/ui/dialog/controller/GnuPGControllerDialog.h b/src/ui/dialog/controller/GnuPGControllerDialog.h index 6e8ef797..e8a4b83c 100644 --- a/src/ui/dialog/controller/GnuPGControllerDialog.h +++ b/src/ui/dialog/controller/GnuPGControllerDialog.h @@ -83,7 +83,7 @@ class GnuPGControllerDialog : public GeneralDialog { private: std::shared_ptr<Ui_GnuPGControllerDialog> ui_; ///< - int restart_needed_{0}; ///< + int restart_mode_{0}; ///< QString custom_key_database_path_; QString custom_gnupg_path_; |