Unverified Commit b2ef5fdc authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Fix crash when reopening mainwindow

When the mainwindow is closed another open
causes it to be constructed again with a new
KeyListController. So we cannot have the
action data static in create actions
because it uses a this pointer which is subject
to change.

Part of
GnuPG-Bug-Id: T5962
parent 34e1d88d
......@@ -354,7 +354,7 @@ TabWidget *KeyListController::tabWidget() const
void KeyListController::createActions(KActionCollection *coll)
{
static const std::vector<action_data> common_and_openpgp_action_data = {
const std::vector<action_data> common_and_openpgp_action_data = {
// File menu
{
"file_new_certificate", i18n("New Key Pair..."), QString(),
......
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