From 289b42aba4a329f77e16fc78dc4ffe0e67226619 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 29 Apr 2024 13:53:56 +0200 Subject: [PATCH] Fix tab order in "file deleted" dialog on Windows/Linux again This was fixed with e9320a812252b05a6367462fea698d35f9585eae and shortly after broke again with 4d6827dde9248b6b47949b535ae361e8c6b04cfa Amends 4d6827dde9248b6b47949b535ae361e8c6b04cfa Fixes: QTCREATORBUG-28676 Change-Id: I4a69b1ea1430613d1aa22620b8f10ebff73d66ab Reviewed-by: Reviewed-by: Alessandro Portale --- src/libs/utils/reloadpromptutils.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libs/utils/reloadpromptutils.cpp b/src/libs/utils/reloadpromptutils.cpp index 52571382454..8a07592d3fe 100644 --- a/src/libs/utils/reloadpromptutils.cpp +++ b/src/libs/utils/reloadpromptutils.cpp @@ -89,12 +89,10 @@ QTCREATOR_UTILS_EXPORT FileDeletedPromptAnswer "Do you want to save it under a different name, or close " "the editor?").arg(QDir::toNativeSeparators(fileName)); QMessageBox box(QMessageBox::Question, title, msg, QMessageBox::NoButton, parent); - QPushButton *close = - box.addButton(Tr::tr("&Close"), QMessageBox::RejectRole); + QPushButton *saveas = box.addButton(Tr::tr("Save &as..."), QMessageBox::ActionRole); + QPushButton *close = box.addButton(Tr::tr("&Close"), QMessageBox::RejectRole); QPushButton *closeAll = box.addButton(Tr::tr("C&lose All"), QMessageBox::RejectRole); - QPushButton *saveas = - box.addButton(Tr::tr("Save &as..."), QMessageBox::ActionRole); QPushButton *save = box.addButton(Tr::tr("&Save"), QMessageBox::AcceptRole); box.setDefaultButton(saveas);