Zeo and Somnopose file dialogs fixed

This commit is contained in:
Phil Olynyk 2019-04-07 23:28:54 -04:00
parent 069a2f405a
commit 7fd7d50d8a

View File

@ -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)"));