[pim/kdepim-addons] kmail/editorplugins/askgeneratetext: Check pointer
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 0c77d340afb004968a317891ec6785055c600765 by Laurent Montel.
Committed on 15/08/2026 at 13:29.
Pushed by mlaurent into branch 'master'.
Check pointer
M +1 -1 kmail/editorplugins/askgeneratetext/askautogeneratetextplugineditor.cpp
https://invent.kde.org/pim/kdepim-addons/-/commit/0c77d340afb004968a317891ec6785055c600765
diff --git a/kmail/editorplugins/askgeneratetext/askautogeneratetextplugineditor.cpp b/kmail/editorplugins/askgeneratetext/askautogeneratetextplugineditor.cpp
index 691226909..4a4b41248 100644
--- a/kmail/editorplugins/askgeneratetext/askautogeneratetextplugineditor.cpp
+++ b/kmail/editorplugins/askgeneratetext/askautogeneratetextplugineditor.cpp
@@ -37,7 +37,7 @@ void AskAutogenerateTextPluginEditor::showConfigureDialog(QWidget *parent)
AutogenerateConfigureAskManager *manager = new AutogenerateConfigureAskManager(dialog);
manager->load();
dialog->setAskInfos(manager->askInfos());
- if (dialog->exec()) {
+ if (dialog->exec() && dialog) {
manager->setInfos(dialog->askInfos());
manager->save();
Q_EMIT configChanged();