diff options
| author | Tilka <tilkax@gmail.com> | 2020-06-17 12:38:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-17 12:38:19 +0100 |
| commit | 0bc7dcd172716f48639419bc4e6ddc415d0f368a (patch) | |
| tree | 3400ac345717247c55cb2d851cd72c62a01620b1 /Source/Core | |
| parent | 3411802fd19f4b4601ed05d3b5b5ad0f6ac103a6 (diff) | |
| parent | b45f2c2ad3c5287665c12bf163791418f66f2178 (diff) | |
Merge pull request #8882 from JosJuice/convert-dropdown-one-option
DolphinQt: Disable convert dialog dropdowns when they have one option
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/ConvertDialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/ConvertDialog.cpp b/Source/Core/DolphinQt/ConvertDialog.cpp index a359f48f03..0d01785dc4 100644 --- a/Source/Core/DolphinQt/ConvertDialog.cpp +++ b/Source/Core/DolphinQt/ConvertDialog.cpp @@ -131,8 +131,6 @@ void ConvertDialog::OnFormatChanged() { case DiscIO::BlobType::GCZ: { - m_block_size->setEnabled(true); - // In order for versions of Dolphin prior to 5.0-11893 to be able to convert a GCZ file // to ISO without messing up the final part of the file in some way, the file size // must be an integer multiple of the block size (fixed in 3aa463c) and must not be @@ -169,9 +167,10 @@ void ConvertDialog::OnFormatChanged() break; } default: - m_block_size->setEnabled(false); break; } + + m_block_size->setEnabled(m_block_size->count() > 1); } bool ConvertDialog::ShowAreYouSureDialog(const QString& text) |
