Commit 0133fbf5 authored by Robert Loehning's avatar Robert Loehning
Browse files

Work around missing default button

Task-number: QTBUG-39334
Change-Id: Ib72e15f51dc86bea4f457375746d3438291eb679
Reviewed-by: default avatarEike Ziller <>
parent a9906585
......@@ -236,7 +236,8 @@ void ReadOnlyFilesDialog::promptFailWarning(const QStringList &files, ReadOnlyRe
message += tr("See details for a complete list of files.");
details = files.join(QLatin1String("\n"));
QMessageBox msgBox(QMessageBox::Warning, title, message);
QMessageBox msgBox(QMessageBox::Warning, title, message,
QMessageBox::Ok, ICore::dialogParent());
......@@ -169,9 +169,9 @@ void MimeTypeSettingsModel::validatePatterns(QStringList *candidates,
if (!duplicates.isEmpty()) {
QMessageBox msgBox;
msgBox.setWindowTitle(tr("Invalid MIME Type"));
msgBox.setText(tr("Conflicting pattern(s) will be discarded."));
QMessageBox msgBox(QMessageBox::NoIcon, tr("Invalid MIME Type"),
tr("Conflicting pattern(s) will be discarded."),
QMessageBox::Ok, ICore::dialogParent());
msgBox.setInformativeText(tr("%n pattern(s) already in use.", 0, duplicates.size()));
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