mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
use native OS dialogs by default for load/save
This commit is contained in:
parent
fc717a8f88
commit
64a7ddc455
25 changed files with 83 additions and 41 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "devicelog.h"
|
||||
|
||||
#include "ui_devicelog.h"
|
||||
#include "preferences.h"
|
||||
|
||||
#include <QScrollBar>
|
||||
#include <QFileDialog>
|
||||
|
|
@ -65,7 +66,7 @@ void DeviceLog::clear()
|
|||
|
||||
void DeviceLog::on_bToFile_clicked()
|
||||
{
|
||||
auto filename = QFileDialog::getSaveFileName(this, "Select file for device log", "", "", nullptr, QFileDialog::DontUseNativeDialog);
|
||||
auto filename = QFileDialog::getSaveFileName(this, "Select file for device log", "", "", nullptr, Preferences::QFileDialogOptions());
|
||||
if(filename.length() > 0) {
|
||||
// create file
|
||||
ofstream file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue