Commit 8fa2c8f9 authored by Laurent Montel's avatar Laurent Montel 😁

Minor

parent 8a6b7b67
......@@ -60,7 +60,7 @@ ArchiveDialog::ArchiveDialog(const Akonadi::ETMCalendar::Ptr &cal,
{
setWindowTitle(i18nc("@title:window", "Archive/Delete Past Events and To-dos"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, this);
mUser1Button = new QPushButton;
buttonBox->addButton(mUser1Button, QDialogButtonBox::ActionRole);
connect(buttonBox, &QDialogButtonBox::rejected, this, &ArchiveDialog::reject);
......
......@@ -64,8 +64,8 @@ class Q_DECL_HIDDEN AttachmentHandler::Private
{
public:
Private(QWidget *parent)
: mParent(parent)
{
mParent = parent;
}
QMap<KJob *, ReceivedInfo> mJobToReceivedInfo;
QPointer<QWidget> mParent;
......
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