summaryrefslogtreecommitdiffstats
path: root/examples/qtmail/attachmentoptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qtmail/attachmentoptions.cpp')
-rw-r--r--examples/qtmail/attachmentoptions.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/qtmail/attachmentoptions.cpp b/examples/qtmail/attachmentoptions.cpp
index a6c1da5c..c8f55af3 100644
--- a/examples/qtmail/attachmentoptions.cpp
+++ b/examples/qtmail/attachmentoptions.cpp
@@ -607,11 +607,8 @@ void AttachmentOptions::saveAttachment()
_document->setVisible(true);
_save->setVisible(false);
} else {
- QMessageBox mb(tr("Unable to save attachment"),
- tr("Please ensure that there is space available for Documents"),
- QMessageBox::Warning,
- QMessageBox::Ok | QMessageBox::Default, QMessageBox::NoButton, QMessageBox::NoButton);
- mb.exec();
+ QMessageBox::warning(nullptr, tr("Unable to save attachment"),
+ tr("Please ensure that there is space available for Documents"));
}
}