mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-08 16:03:43 +00:00
attempt to fix --no-gui option for windows
This commit is contained in:
parent
6e07be0af5
commit
c9ffdcd52b
25 changed files with 141 additions and 58 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue