Git commit 53ae237970ceffb8b089861c4aa08d92c1723bfb by Allen Winter. Committed on 01/05/2012 at 01:02. Pushed by winterz into branch 'master'. QPointer wrap the Calendar and Task Editor dialogs for crash safety. M +8 -7 resources/google/calendar/settingsdialog.cpp http://commits.kde.org/kdepim-runtime/53ae237970ceffb8b089861c4aa08d92c1723= bfb diff --git a/resources/google/calendar/settingsdialog.cpp b/resources/googl= e/calendar/settingsdialog.cpp index a0826e6..1671e6a 100644 --- a/resources/google/calendar/settingsdialog.cpp +++ b/resources/google/calendar/settingsdialog.cpp @@ -21,14 +21,15 @@ #include "tasklisteditor.h" #include "ui_settingsdialog.h" = -#include -#include -#include - #include #include #include = +#include +#include +#include +#include + #include #include #include @@ -257,7 +258,7 @@ void SettingsDialog::accountChanged() = void SettingsDialog::addCalendarClicked() { - CalendarEditor *editor =3D new CalendarEditor; + QPointer editor =3D new CalendarEditor; connect( editor, SIGNAL(accepted(KGoogle::Objects::Calendar*)), this, SLOT(addCalendar(KGoogle::Objects::Calendar*)) ); = @@ -318,7 +319,7 @@ void SettingsDialog::editCalendarClicked() return; } = - CalendarEditor *editor =3D new CalendarEditor( calendar ); + QPointer editor =3D new CalendarEditor( calendar ); connect( editor, SIGNAL(accepted(KGoogle::Objects::Calendar*)), this, SLOT(editCalendar(KGoogle::Objects::Calendar*)) ); = @@ -505,7 +506,7 @@ void SettingsDialog::editTaskListClicked() return; } = - TasklistEditor *editor =3D new TasklistEditor( taskList ); + QPointer editor =3D new TasklistEditor( taskList ); connect( editor, SIGNAL(accepted(KGoogle::Objects::TaskList*)), this, SLOT(editTaskList(KGoogle::Objects::TaskList*)) ); =