mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Switch to helper functions for blocking dialogs (file and message)
* To continue the workaround for QTBUG-56382 we need to run our own manual message loop for dialogs as well. We only use a couple so we can just run it through a handful of thin wrappers.
This commit is contained in:
@@ -62,9 +62,9 @@ void MainWindow::on_action_Exit_triggered()
|
||||
void MainWindow::on_action_Open_Log_triggered()
|
||||
{
|
||||
QString filename =
|
||||
QFileDialog::getOpenFileName(this, "Select Logfile to open", "",
|
||||
"Log Files (*.rdc);;Image Files (*.dds *.hdr *.exr *.bmp *.jpg "
|
||||
"*.jpeg *.png *.tga *.gif *.psd;;All Files (*.*)");
|
||||
RDDialog::getOpenFileName(this, "Select Logfile to open", "",
|
||||
"Log Files (*.rdc);;Image Files (*.dds *.hdr *.exr *.bmp *.jpg "
|
||||
"*.jpeg *.png *.tga *.gif *.psd;;All Files (*.*)");
|
||||
|
||||
QFileInfo checkFile(filename);
|
||||
if(filename != "" && checkFile.exists() && checkFile.isFile())
|
||||
@@ -78,5 +78,5 @@ void MainWindow::on_action_Open_Log_triggered()
|
||||
void MainWindow::on_action_About_triggered()
|
||||
{
|
||||
AboutDialog about(this);
|
||||
about.exec();
|
||||
RDDialog::show(&about);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user