all repos — mgba @ c8be60f88b651539a224f35054b0856a08d1a76f

mGBA Game Boy Advance Emulator

Qt: Restrict load types
Jeffrey Pfau jeffrey@endrift.com
Sat, 10 Jan 2015 23:28:41 -0800
commit

c8be60f88b651539a224f35054b0856a08d1a76f

parent

087810a125cabbced5315a05aca105066ca2a210

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -177,7 +177,7 @@ m_config->write();

} void Window::selectROM() { - QString filename = QFileDialog::getOpenFileName(this, tr("Select ROM"), m_config->getQtOption("lastDirectory").toString()); + QString filename = QFileDialog::getOpenFileName(this, tr("Select ROM"), m_config->getQtOption("lastDirectory").toString(), tr("Game Boy Advance ROMs (*.gba *.zip *.rom *.bin)")); if (!filename.isEmpty()) { m_config->setQtOption("lastDirectory", QFileInfo(filename).dir().path()); m_controller->loadGame(filename);