forked from qt-creator/qt-creator
Core: Close ICore::showWarningWithOptions dialog on pressing Esc button
Change-Id: Ic09202799bde9cb4fbc3ca4e9836ca0c0cc499f2 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -345,6 +345,7 @@ bool ICore::showWarningWithOptions(const QString &title, const QString &text,
|
|||||||
parent = m_mainwindow;
|
parent = m_mainwindow;
|
||||||
QMessageBox msgBox(QMessageBox::Warning, title, text,
|
QMessageBox msgBox(QMessageBox::Warning, title, text,
|
||||||
QMessageBox::Ok, parent);
|
QMessageBox::Ok, parent);
|
||||||
|
msgBox.setEscapeButton(QMessageBox::Ok);
|
||||||
if (!details.isEmpty())
|
if (!details.isEmpty())
|
||||||
msgBox.setDetailedText(details);
|
msgBox.setDetailedText(details);
|
||||||
QAbstractButton *settingsButton = nullptr;
|
QAbstractButton *settingsButton = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user