mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-14 01:58:43 +01:00
MainWindow::on_Action_File_OpenRom: correct dialog
This commit is contained in:
1 parent
7af0c934a3
commit
a3d6b2eb42
1 file changed
+2
-3
@@ -655,13 +655,12 @@ void MainWindow::on_Action_File_OpenRom(void)
|
||||
this->on_Action_System_Pause();
|
||||
}
|
||||
|
||||
QFileDialog dialog;
|
||||
QFileDialog dialog(this);
|
||||
int ret;
|
||||
QString dir;
|
||||
|
||||
dialog.setFileMode(QFileDialog::FileMode::ExistingFile);
|
||||
dialog.setNameFilter("N64 Roms (*.n64 *.z64 *.v64 *.ndd *.d64)");
|
||||
dialog.setWindowIcon(this->ui_Icon);
|
||||
dialog.setNameFilter("N64/64DD ROM (*.n64 *.z64 *.v64 *.ndd *.d64)");
|
||||
|
||||
ret = dialog.exec();
|
||||
if (!ret)
|
||||
|
||||
Reference in new issue
Block a user