attempt to fix --no-gui option for windows

This commit is contained in:
Jan Käberich 2022-03-03 12:28:59 +01:00
parent 6e07be0af5
commit c9ffdcd52b
25 changed files with 141 additions and 58 deletions

View file

@ -7,6 +7,7 @@
#include "trace.h"
#include "unit.h"
#include "Util/util.h"
#include "appwindow.h"
#include <QKeyEvent>
#include <QFileDialog>
@ -113,7 +114,9 @@ void TraceWidget::on_edit_clicked()
{
if(ui->view->currentIndex().isValid()) {
auto edit = new TraceEditDialog(*model.trace(ui->view->currentIndex().row()));
edit->show();
if(AppWindow::showGUI()) {
edit->show();
}
}
}
@ -121,7 +124,9 @@ void TraceWidget::on_view_doubleClicked(const QModelIndex &index)
{
if(index.column() == TraceModel::ColIndexName) {
auto edit = new TraceEditDialog(*model.trace(index.row()));
edit->show();
if(AppWindow::showGUI()) {
edit->show();
}
}
}