mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
Qt: fix vfs dialog usb tab cast
This commit is contained in:
parent
7648171fe2
commit
f6759de1e9
@ -60,13 +60,13 @@ vfs_dialog::vfs_dialog(std::shared_ptr<gui_settings> _gui_settings, QWidget* par
|
||||
|
||||
for (int i = 0; i < tabs->count(); ++i)
|
||||
{
|
||||
if (i < tabs->count() - 1)
|
||||
if (tabs->tabText(i) == "dev_usb")
|
||||
{
|
||||
static_cast<vfs_dialog_tab*>(tabs->widget(i))->reset();
|
||||
static_cast<vfs_dialog_usb_tab*>(tabs->widget(i))->reset();
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<vfs_dialog_usb_tab*>(tabs->widget(i))->reset();
|
||||
static_cast<vfs_dialog_tab*>(tabs->widget(i))->reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -74,13 +74,13 @@ vfs_dialog::vfs_dialog(std::shared_ptr<gui_settings> _gui_settings, QWidget* par
|
||||
{
|
||||
for (int i = 0; i < tabs->count(); ++i)
|
||||
{
|
||||
if (i < tabs->count() - 1)
|
||||
if (tabs->tabText(i) == "dev_usb")
|
||||
{
|
||||
static_cast<vfs_dialog_tab*>(tabs->widget(i))->set_settings();
|
||||
static_cast<vfs_dialog_usb_tab*>(tabs->widget(i))->set_settings();
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<vfs_dialog_usb_tab*>(tabs->widget(i))->set_settings();
|
||||
static_cast<vfs_dialog_tab*>(tabs->widget(i))->set_settings();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user