| 87 | } |
| 88 | |
| 89 | void MemoryCardCreateDialog::updateState() |
| 90 | { |
| 91 | const bool okay = (m_ui.name->text().length() > 0); |
| 92 | |
| 93 | m_ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(okay); |
| 94 | #ifdef _WIN32 |
| 95 | m_ui.ntfsCompression->setEnabled(m_type == MemoryCardType::File); |
| 96 | #endif |
| 97 | } |
| 98 | |
| 99 | void MemoryCardCreateDialog::createCard() |
| 100 | { |