forked from qt-creator/qt-creator
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: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user