From e9320a812252b05a6367462fea698d35f9585eae Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 18 Jan 2023 11:03:36 +0100 Subject: [PATCH] Fix tab order in "file deleted" dialog on Windows/Linux For some reason it doesn't like it if the order of adding the buttons is different, though that works on macOS. Fixes: QTCREATORBUG-28676 Change-Id: Iea7c595216140dd242cac0aa528699866c4bb1c7 Reviewed-by: Reviewed-by: David Schulz --- src/libs/utils/reloadpromptutils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/utils/reloadpromptutils.cpp b/src/libs/utils/reloadpromptutils.cpp index 4489908724e..4a890a04513 100644 --- a/src/libs/utils/reloadpromptutils.cpp +++ b/src/libs/utils/reloadpromptutils.cpp @@ -100,15 +100,15 @@ 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 *saveas = + box.addButton(QCoreApplication::translate("Utils::fileDeletedPrompt", "Save &as..."), + QMessageBox::ActionRole); QPushButton *close = box.addButton(QCoreApplication::translate("Utils::fileDeletedPrompt", "&Close"), QMessageBox::RejectRole); QPushButton *closeAll = box.addButton(QCoreApplication::translate("Utils::fileDeletedPrompt", "C&lose All"), QMessageBox::RejectRole); - QPushButton *saveas = - box.addButton(QCoreApplication::translate("Utils::fileDeletedPrompt", "Save &as..."), - QMessageBox::ActionRole); QPushButton *save = box.addButton(QCoreApplication::translate("Utils::fileDeletedPrompt", "&Save"), QMessageBox::AcceptRole);