| 30 | } |
| 31 | |
| 32 | bool SetupWizardDialog::canShowNextPage() |
| 33 | { |
| 34 | const int current_page = m_ui.pages->currentIndex(); |
| 35 | |
| 36 | switch (current_page) |
| 37 | { |
| 38 | case Page_BIOS: |
| 39 | { |
| 40 | if (!m_ui.biosList->currentItem()) |
| 41 | { |
| 42 | if (QMessageBox::question(this, tr("Warning"), |
| 43 | tr("A BIOS image has not been selected. PCSX2 <strong>will not</strong> be able to run games " |
| 44 | "without a BIOS image.<br><br>Are you sure you wish to continue without selecting a BIOS " |
| 45 | "image?")) != QMessageBox::Yes) |
| 46 | { |
| 47 | return false; |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | break; |
| 52 | |
| 53 | case Page_GameList: |
| 54 | { |
| 55 | if (m_ui.searchDirectoryList->rowCount() == 0) |
| 56 | { |
| 57 | if (QMessageBox::question(this, tr("Warning"), |
| 58 | tr("No game directories have been selected. You will have to manually open any game dumps you " |
| 59 | "want to play, PCSX2's list will be empty.\n\nAre you sure you want to continue?")) != |
| 60 | QMessageBox::Yes) |
| 61 | { |
| 62 | return false; |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | break; |
| 67 | |
| 68 | default: |
| 69 | break; |
| 70 | } |
| 71 | |
| 72 | return true; |
| 73 | } |
| 74 | |
| 75 | void SetupWizardDialog::previousPage() |
| 76 | { |