summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrius Štikonas <andrius@stikonas.eu>2016-08-14 11:48:30 (GMT)
committerAndrius Štikonas <andrius@stikonas.eu>2016-08-14 11:48:30 (GMT)
commit6d329a53390510b19695dd1f3e69349678078d98 (patch)
tree36bfb3a1bbc4c854d3925afa1f4676cb223d4cc0
parent3af7f93d58c42d4cba15290e060ab0b0dec4d970 (diff)
Fix a crash on closing KGpgTextEditor window.
KgpgEditor::modified slot was called after closing the window leading to a crash when closing editor window. We can disconnect the slot to workaround this problem.
-rw-r--r--editor/kgpgeditor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/kgpgeditor.cpp b/editor/kgpgeditor.cpp
index 8e10a02..9727986 100644
--- a/editor/kgpgeditor.cpp
+++ b/editor/kgpgeditor.cpp
@@ -110,6 +110,7 @@ KgpgEditor::KgpgEditor(KeysManager *parent, KGpgItemModel *model, Qt::WFlags f)
KgpgEditor::~KgpgEditor()
{
+ disconnect(m_editor, &KgpgTextEdit::textChanged, this, &KgpgEditor::modified);
m_recentfiles->saveEntries( KConfigGroup(KSharedConfig::openConfig(), "Recent Files" ) );
}