Commit 8cda5a03 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Add action for restarting the GnuPG daemons

GnuPG-bug-id: 5775
parent 6a1b1e1c
<!DOCTYPE gui >
<gui name="kleopatra" version="506" >
<gui name="kleopatra" version="507" >
<MenuBar>
<Menu name="file">
<text>&amp;File</text>
......@@ -66,6 +66,8 @@
<Separator/>
<Action name="crl_clear_crl_cache"/>
<Action name="crl_dump_crl_cache"/>
<Separator/>
<Action name="tools_restart_backend"/>
</Menu>
<Menu name="settings">
<text>&amp;Settings</text>
......
......@@ -70,6 +70,7 @@
#include <QLabel>
#include <Libkleo/Formatting>
#include <Libkleo/GnuPG>
#include <Libkleo/KeyListModel>
#include <Libkleo/KeyListSortFilterProxyModel>
#include <Libkleo/Stl_Util>
......@@ -290,6 +291,11 @@ public:
command->start();
}
void restartDaemons()
{
Kleo::killDaemons();
}
private:
void setupActions();
......@@ -425,6 +431,11 @@ void MainWindow::Private::setupActions()
"kwatchgnupg", q, SLOT(gnupgLogViewer()), QString(), false, true
},
#endif
{
"tools_restart_backend", i18nc("@action:inmenu", "Restart Background Processes"),
i18nc("@info:tooltip", "Restart the background processes, e.g. after making changes to the configuration."),
"view-refresh", q, SLOT(restartDaemons()), {}, false, true
},
#ifdef Q_OS_WIN
{
"help_check_updates", i18n("Check for updates"), QString(),
......
......@@ -54,5 +54,5 @@ private:
Q_PRIVATE_SLOT(d, void showSmartcardView())
Q_PRIVATE_SLOT(d, void forceUpdateCheck())
Q_PRIVATE_SLOT(d, void listSmartcardReaders())
Q_PRIVATE_SLOT(d, void restartDaemons())
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment