mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Replace "All Files (*.*)" with "All Files (*)"
To quote the Qt documentation for QFileDialog::setNameFilters: > Note that the filter *.* is not portable, because the historical > assumption that the file extension determines the file type is not > consistent on every operating system. It is possible to have a file > with no dot in its name (for example, Makefile). In a native Windows > file dialog, *.* will match such files, while in other types of file > dialogs it may not. So it is better to use * if you mean to select > any file. Admittedly, one of these usages is Windows-only and we are using the native file dialog there, but we might as well be consistent.
This commit is contained in:
committed by
Baldur Karlsson
parent
405e98639f
commit
2fc8475fdf
@@ -268,7 +268,7 @@ void MainWindow::on_action_Open_Log_triggered()
|
||||
QString filename = RDDialog::getOpenFileName(
|
||||
this, tr("Select Logfile to open"), m_Ctx.Config().LastLogPath,
|
||||
tr("Capture Files (*.rdc);;Image Files (*.dds *.hdr *.exr *.bmp *.jpg "
|
||||
"*.jpeg *.png *.tga *.gif *.psd;;All Files (*.*)"));
|
||||
"*.jpeg *.png *.tga *.gif *.psd;;All Files (*)"));
|
||||
|
||||
if(!filename.isEmpty())
|
||||
LoadFromFilename(filename, false);
|
||||
|
||||
Reference in New Issue
Block a user