Skip to content

Commit

Permalink
Change import board button to use the system file dialog like the oth…
Browse files Browse the repository at this point in the history
…er open file dialogs do
  • Loading branch information
nikkiwritescode committed Jun 26, 2024
1 parent b178a9d commit 81ab80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapdescriptorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void MapDescriptorWidget::loadRowWithMapDescriptor(int row, const MapDescriptor

auto importYamlButton = new QPushButton("Import .yaml or .zip");
connect(importYamlButton, &QPushButton::clicked, this, [=](bool) {
auto openYaml = QFileDialog::getOpenFileName(this, "Import .yaml or .zip", QString(), "Map Descriptor Files (*.yaml *.zip)", nullptr, QFileDialog::DontUseNativeDialog);
auto openYaml = QFileDialog::getOpenFileName(this, "Import .yaml or .zip", QString(), "Map Descriptor Files (*.yaml *.zip)", nullptr);
if (openYaml.isEmpty()) return;
MapDescriptor newDescriptor;
try {
Expand Down

0 comments on commit 81ab80e

Please sign in to comment.