diff options
Diffstat (limited to 'src/citra_qt/main.cpp')
| -rw-r--r-- | src/citra_qt/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index d5554d917..0701decef 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp | |||
| @@ -131,7 +131,7 @@ GMainWindow::GMainWindow() | |||
| 131 | GMainWindow::~GMainWindow() | 131 | GMainWindow::~GMainWindow() |
| 132 | { | 132 | { |
| 133 | // will get automatically deleted otherwise | 133 | // will get automatically deleted otherwise |
| 134 | if (render_window->parent() == NULL) | 134 | if (render_window->parent() == nullptr) |
| 135 | delete render_window; | 135 | delete render_window; |
| 136 | } | 136 | } |
| 137 | 137 | ||
| @@ -164,7 +164,7 @@ void GMainWindow::BootGame(std::string filename) | |||
| 164 | 164 | ||
| 165 | void GMainWindow::OnMenuLoadFile() | 165 | void GMainWindow::OnMenuLoadFile() |
| 166 | { | 166 | { |
| 167 | QString filename = QFileDialog::getOpenFileName(this, tr("Load file"), QString(), tr("3DS executable (*.elf *.axf *.bin *.cci *.cxi)")); | 167 | QString filename = QFileDialog::getOpenFileName(this, tr("Load file"), QString(), tr("3DS executable (*.3dsx *.elf *.axf *.bin *.cci *.cxi)")); |
| 168 | if (filename.size()) | 168 | if (filename.size()) |
| 169 | BootGame(filename.toLatin1().data()); | 169 | BootGame(filename.toLatin1().data()); |
| 170 | } | 170 | } |
| @@ -213,14 +213,14 @@ void GMainWindow::OnOpenHotkeysDialog() | |||
| 213 | void GMainWindow::ToggleWindowMode() | 213 | void GMainWindow::ToggleWindowMode() |
| 214 | { | 214 | { |
| 215 | bool enable = ui.action_Popout_Window_Mode->isChecked(); | 215 | bool enable = ui.action_Popout_Window_Mode->isChecked(); |
| 216 | if (enable && render_window->parent() != NULL) | 216 | if (enable && render_window->parent() != nullptr) |
| 217 | { | 217 | { |
| 218 | ui.horizontalLayout->removeWidget(render_window); | 218 | ui.horizontalLayout->removeWidget(render_window); |
| 219 | render_window->setParent(NULL); | 219 | render_window->setParent(nullptr); |
| 220 | render_window->setVisible(true); | 220 | render_window->setVisible(true); |
| 221 | render_window->RestoreGeometry(); | 221 | render_window->RestoreGeometry(); |
| 222 | } | 222 | } |
| 223 | else if (!enable && render_window->parent() == NULL) | 223 | else if (!enable && render_window->parent() == nullptr) |
| 224 | { | 224 | { |
| 225 | render_window->BackupGeometry(); | 225 | render_window->BackupGeometry(); |
| 226 | ui.horizontalLayout->addWidget(render_window); | 226 | ui.horizontalLayout->addWidget(render_window); |