mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
RMG: add confirmation checkbox to drag & drop confirmation dialog
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user