mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 22:47:12 +02:00
Qt/FileystemWidget: Fix crash when right-clicking GC disc
This commit is contained in:
parent
987bec2fd5
commit
8a612bf285
@ -148,11 +148,13 @@ void FilesystemWidget::ShowContextMenu(const QPoint&)
|
|||||||
|
|
||||||
QMenu* menu = new QMenu(this);
|
QMenu* menu = new QMenu(this);
|
||||||
|
|
||||||
DiscIO::Partition partition = GetPartitionFromID(item->data(ENTRY_PARTITION).toInt());
|
|
||||||
QString path = item->data(ENTRY_NAME).toString();
|
|
||||||
|
|
||||||
EntryType type = item->data(ENTRY_TYPE).value<EntryType>();
|
EntryType type = item->data(ENTRY_TYPE).value<EntryType>();
|
||||||
|
|
||||||
|
DiscIO::Partition partition = type == EntryType::Disc ?
|
||||||
|
DiscIO::PARTITION_NONE :
|
||||||
|
GetPartitionFromID(item->data(ENTRY_PARTITION).toInt());
|
||||||
|
QString path = item->data(ENTRY_NAME).toString();
|
||||||
|
|
||||||
if ((type == EntryType::Disc && m_volume->GetPartitions().empty()) ||
|
if ((type == EntryType::Disc && m_volume->GetPartitions().empty()) ||
|
||||||
type == EntryType::Partition)
|
type == EntryType::Partition)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user