mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 03:38:38 +12:00
Qt: Add confirmation dialogs on drag and drop
This commit is contained in:
parent
193837298b
commit
b4b8c1e4b2
1 changed files with 8 additions and 0 deletions
|
@ -2280,6 +2280,10 @@ void main_window::dropEvent(QDropEvent* event)
|
||||||
}
|
}
|
||||||
case drop_type::drop_dir: // import valid games to gamelist (games.yaml)
|
case drop_type::drop_dir: // import valid games to gamelist (games.yaml)
|
||||||
{
|
{
|
||||||
|
if (!m_game_list_frame->GetBootConfirmation())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (const auto& path : drop_paths)
|
for (const auto& path : drop_paths)
|
||||||
{
|
{
|
||||||
AddGamesFromDir(path);
|
AddGamesFromDir(path);
|
||||||
|
@ -2289,6 +2293,10 @@ void main_window::dropEvent(QDropEvent* event)
|
||||||
}
|
}
|
||||||
case drop_type::drop_game: // import valid games to gamelist (games.yaml)
|
case drop_type::drop_game: // import valid games to gamelist (games.yaml)
|
||||||
{
|
{
|
||||||
|
if (!m_game_list_frame->GetBootConfirmation())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (const auto error = Emu.BootGame(sstr(drop_paths.first()), "", true); error != game_boot_result::no_errors)
|
if (const auto error = Emu.BootGame(sstr(drop_paths.first()), "", true); error != game_boot_result::no_errors)
|
||||||
{
|
{
|
||||||
gui_log.error("Boot failed: reason: %s, path: %s", error, sstr(drop_paths.first()));
|
gui_log.error("Boot failed: reason: %s, path: %s", error, sstr(drop_paths.first()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue