mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +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
|
|
@ -3,6 +3,7 @@
|
|||
#include "Traces/tracecsvexport.h"
|
||||
#include "Traces/traceimportdialog.h"
|
||||
#include "CustomWidgets/informationbox.h"
|
||||
#include "appwindow.h"
|
||||
|
||||
#include <QFileDialog>
|
||||
|
||||
|
|
@ -15,7 +16,9 @@ TraceWidgetSA::TraceWidgetSA(TraceModel &model, QWidget *parent)
|
|||
void TraceWidgetSA::exportDialog()
|
||||
{
|
||||
auto csv = new TraceCSVExport(model);
|
||||
csv->show();
|
||||
if(AppWindow::showGUI()) {
|
||||
csv->show();
|
||||
}
|
||||
}
|
||||
|
||||
void TraceWidgetSA::importDialog()
|
||||
|
|
@ -38,7 +41,9 @@ void TraceWidgetSA::importDialog()
|
|||
prefix.truncate(prefix.indexOf('.'));
|
||||
prefix.append("_");
|
||||
auto i = new TraceImportDialog(model, traces, prefix);
|
||||
i->show();
|
||||
if(AppWindow::showGUI()) {
|
||||
i->show();
|
||||
}
|
||||
} catch(const std::exception e) {
|
||||
InformationBox::ShowError("Failed to import file", QString("Attempt to import file ended with error: \"") + e.what()+"\"");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue