Make file dialog modal
MODIFY
src/mainwindow.cpp
src/mainwindow.cpp
@@ -278,10 +278,11 @@ void MainWindow::saveFilesTriggered() {
}
void MainWindow::saveFilesAsTriggered() {
- QFileDialog dialog;
+ QFileDialog dialog(this);
dialog.setNameFilter("*.as *.s");
dialog.setAcceptMode(QFileDialog::AcceptSave);
dialog.setDefaultSuffix(".s");
+ dialog.setModal(true);
if (dialog.exec()) {
m_currentFile = dialog.selectedFiles()[0];
saveFilesTriggered();

MODIFY
src/pipelinetable.cpp
src/pipelinetable.cpp
#include "ui_pipelinetable.h"
#include <QClipboard>
-#include <QFileDialog>
#include <QHeaderView>
PipelineTable::PipelineTable(QWidget* parent) : QDialog(parent), ui(new Ui::PipelineTable) {
@@ -10,7 +9,8 @@ PipelineTable::PipelineTable(QWidget* parent) : QDialog(parent), ui(new Ui::Pipe
this->setModal(true);
ui->table->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
- ui->description->setText(QString("<b>Note:</b> The pipeline table can be copied as tab separated,<br>suitable for pasting into a spreadsheet"));
+ ui->description->setText(QString(
+ "<b>Note:</b> The pipeline table can be copied as tab separated,<br>suitable for pasting into a spreadsheet"));
}
void PipelineTable::setModel(QAbstractItemModel* model) {

MODIFY
src/processortab.cpp
src/processortab.cpp
#include "processortab.h"
#include "ui_processortab.h"
-#include <QFileDialog>
#include <QScrollBar>
#include <QSpinBox>

Make file dialog modal