From 7fd7d50d8a5356651d95828256e4a1b8c287d6a3 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Sun, 7 Apr 2019 23:28:54 -0400 Subject: [PATCH] Zeo and Somnopose file dialogs fixed --- oscar/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oscar/mainwindow.cpp b/oscar/mainwindow.cpp index 2421bc28..abbfad08 100644 --- a/oscar/mainwindow.cpp +++ b/oscar/mainwindow.cpp @@ -2224,7 +2224,7 @@ void MainWindow::on_actionImport_ZEO_Data_triggered() { QFileDialog w; w.setFileMode(QFileDialog::ExistingFiles); - this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint); + w.setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint); w.setOption(QFileDialog::ShowDirsOnly, false); w.setOption(QFileDialog::DontUseNativeDialog, true); w.setNameFilters(QStringList("Zeo CSV File (*.csv)")); @@ -2308,7 +2308,7 @@ void MainWindow::on_actionImport_Somnopose_Data_triggered() { QFileDialog w; w.setFileMode(QFileDialog::ExistingFiles); - this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint); + w.setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint); w.setOption(QFileDialog::ShowDirsOnly, false); w.setOption(QFileDialog::DontUseNativeDialog, true); w.setNameFilters(QStringList("Somnopause CSV File (*.csv)"));