Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 58ce3180 authored by Laurent Montel's avatar Laurent Montel 😁

Fix potential crash

parent a1d2d61d
......@@ -181,9 +181,10 @@ void MainWindow::optionsConfigureToolbars()
KConfigGroup grp(KSharedConfig::openConfig().data()->group(autoSaveGroup()));
KEditToolBar dlg(factory());
connect(&dlg, &KEditToolBar::newToolBarConfig, this, &MainWindow::applyNewToolbarConfig);
QPointer<KEditToolBar> dlg = new KEditToolBar(factory());
connect(dlg, &KEditToolBar::newToolBarConfig, this, &MainWindow::applyNewToolbarConfig);
delete dlg;
// TODO: move to part?
Markdown is supported
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