From a66fe3bdced5a5a80c5a913caab62afdf75e4eb5 Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Fri, 7 Nov 2025 15:21:53 +0100 Subject: [PATCH] RMG: add confirmation checkbox to drag & drop confirmation dialog --- Source/RMG/UserInterface/MainWindow.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/RMG/UserInterface/MainWindow.cpp b/Source/RMG/UserInterface/MainWindow.cpp index ecd521c0..8d006ce4 100644 --- a/Source/RMG/UserInterface/MainWindow.cpp +++ b/Source/RMG/UserInterface/MainWindow.cpp @@ -1490,13 +1490,15 @@ void MainWindow::on_EventFilter_FileDropped(QDropEvent *event) if (inEmulation && confirmDragDrop) { - QMessageBox::StandardButton reply = QMessageBox::question(this, "", - "Are you sure you want to launch the drag & dropped ROM?", - QMessageBox::Yes | QMessageBox::No); - if (reply == QMessageBox::No) + confirmDragDrop = false; + bool ret = QtMessageBox::Question(this, "Are you sure you want to launch the drag & dropped ROM?", + "Don't ask for confirmation again", confirmDragDrop); + if (!ret) { return; } + + CoreSettingsSetValue(SettingsID::GUI_ConfirmDragDrop, !confirmDragDrop); } file = urls.first().toLocalFile();